Class: Hyrax::BatchCreateOperation
- Defined in:
- app/models/hyrax/batch_create_operation.rb
Constant Summary
Constants inherited from Operation
Operation::FAILURE, Operation::PENDING, Operation::PERFORMING, Operation::SUCCESS
Instance Method Summary collapse
Methods inherited from Operation
#fail!, #pending_job, #performing!, #rollup_status, #success!
Instance Method Details
#batch_failure_message ⇒ Object
11 12 13 14 |
# File 'app/models/hyrax/batch_create_operation.rb', line 11 def return unless Hyrax.config.callback.set?(:after_batch_create_failure) Hyrax.config.callback.run(:after_batch_create_failure, user) end |
#batch_success_message ⇒ Object
6 7 8 9 |
# File 'app/models/hyrax/batch_create_operation.rb', line 6 def return unless Hyrax.config.callback.set?(:after_batch_create_success) Hyrax.config.callback.run(:after_batch_create_success, user) end |