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
641 B
31 lines
641 B
2 years ago
|
module Forms
|
||
|
module BulkUploadLettingsResume
|
||
|
class Confirm
|
||
|
include ActiveModel::Model
|
||
|
include ActiveModel::Attributes
|
||
|
include Rails.application.routes.url_helpers
|
||
|
|
||
|
attribute :bulk_upload
|
||
|
|
||
|
def view_path
|
||
|
"bulk_upload_lettings_resume/confirm"
|
||
|
end
|
||
|
|
||
|
def back_path
|
||
|
page_bulk_upload_lettings_resume_path(bulk_upload, page: "fix-choice")
|
||
|
end
|
||
|
|
||
|
def next_path
|
||
|
resume_bulk_upload_lettings_result_path(bulk_upload)
|
||
|
end
|
||
|
|
||
|
def save!
|
||
|
processor = BulkUpload::Processor.new(bulk_upload:)
|
||
|
processor.approve
|
||
|
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|