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.
31 lines
569 B
31 lines
569 B
module Forms |
|
module BulkUploadSalesResume |
|
class Chosen |
|
include ActiveModel::Model |
|
include ActiveModel::Attributes |
|
include Rails.application.routes.url_helpers |
|
|
|
attribute :bulk_upload |
|
|
|
def view_path |
|
bulk_upload.completed? ? "bulk_upload_sales_resume/completed" : "bulk_upload_sales_resume/chosen" |
|
end |
|
|
|
def back_path |
|
sales_logs_path |
|
end |
|
|
|
def next_path |
|
sales_logs_path |
|
end |
|
|
|
def save! |
|
true |
|
end |
|
|
|
def preflight_valid? |
|
true |
|
end |
|
end |
|
end |
|
end
|
|
|