Class: Pageflow::ProcessFileJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Pageflow::ProcessFileJob
- Includes:
- StateMachineJob
- Defined in:
- app/jobs/pageflow/process_file_job.rb
Instance Method Summary collapse
Instance Method Details
#perform_with_result(file, _options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/jobs/pageflow/process_file_job.rb', line 7 def perform_with_result(file, ) file. = file. file.save! :ok rescue ActiveRecord::RecordInvalid, Errno::ENAMETOOLONG file. = nil file.save! :error end |