Class: Pageflow::ProcessImageOrTextTrackJob Private
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Pageflow::ProcessImageOrTextTrackJob
- Includes:
- StateMachineJob
- Defined in:
- app/jobs/pageflow/process_image_or_text_track_job.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #perform_with_result(file, _options) ⇒ Object private
- #reset_invalid_attachment(file) ⇒ Object private
Instance Method Details
#perform_with_result(file, _options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/jobs/pageflow/process_image_or_text_track_job.rb', line 8 def perform_with_result(file, ) file..reprocess! if file.valid? :ok else (file) :error end rescue ActiveRecord::RecordInvalid, Errno::ENAMETOOLONG (file) :error end |
#reset_invalid_attachment(file) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'app/jobs/pageflow/process_image_or_text_track_job.rb', line 23 def (file) file_name = file.file_name file. = nil file.file_name = file_name end |