Class: Hyrax::BatchCreateOperation
- Inherits:
-
Operation
- Object
- ActiveRecord::Base
- Operation
- Hyrax::BatchCreateOperation
show all
- 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 batch_failure_message
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 batch_success_message
return unless Hyrax.config.callback.set?(:after_batch_create_success)
Hyrax.config.callback.run(:after_batch_create_success, user)
end
|