You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
630 B
33 lines
630 B
2 years ago
|
module Forms
|
||
1 week ago
|
module BulkUploadResume
|
||
2 years ago
|
class Chosen
|
||
|
include ActiveModel::Model
|
||
|
include ActiveModel::Attributes
|
||
|
include Rails.application.routes.url_helpers
|
||
|
|
||
1 week ago
|
attribute :log_type
|
||
2 years ago
|
attribute :bulk_upload
|
||
|
|
||
|
def view_path
|
||
1 week ago
|
bulk_upload.completed? ? "bulk_upload_#{log_type}_resume/completed" : "bulk_upload_#{log_type}_resume/chosen"
|
||
2 years ago
|
end
|
||
|
|
||
|
def back_path
|
||
1 week ago
|
send("#{log_type}_logs_path")
|
||
2 years ago
|
end
|
||
|
|
||
|
def next_path
|
||
1 week ago
|
send("#{log_type}_logs_path")
|
||
2 years ago
|
end
|
||
|
|
||
|
def save!
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def preflight_valid?
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|