Class: ActiveBatch::Batch
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActiveBatch::Batch
- Includes:
- WithActiveJobArguments
- Defined in:
- app/models/active_batch/batch.rb
Instance Method Summary collapse
Methods included from WithActiveJobArguments
Instance Method Details
#job ⇒ Object
16 17 18 |
# File 'app/models/active_batch/batch.rb', line 16 def job @job ||= job_class.constantize end |
#perform_after_batch ⇒ Object
11 12 13 14 |
# File 'app/models/active_batch/batch.rb', line 11 def perform_after_batch job.after_batch(*arguments, work_units.map(&:work_result)) update!(status: :closed) end |