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.
32 lines
630 B
32 lines
630 B
module Forms |
|
module BulkUploadResume |
|
class Chosen |
|
include ActiveModel::Model |
|
include ActiveModel::Attributes |
|
include Rails.application.routes.url_helpers |
|
|
|
attribute :log_type |
|
attribute :bulk_upload |
|
|
|
def view_path |
|
bulk_upload.completed? ? "bulk_upload_#{log_type}_resume/completed" : "bulk_upload_#{log_type}_resume/chosen" |
|
end |
|
|
|
def back_path |
|
send("#{log_type}_logs_path") |
|
end |
|
|
|
def next_path |
|
send("#{log_type}_logs_path") |
|
end |
|
|
|
def save! |
|
true |
|
end |
|
|
|
def preflight_valid? |
|
true |
|
end |
|
end |
|
end |
|
end
|
|
|