Sha256: e39d5d0c2838976a326e6ae4cef41fc31431021d86cea05c7b1fd2f350cf1c17

Contents?: true

Size: 544 Bytes

Versions: 22

Compression:

Stored size: 544 Bytes

Contents

module Hyrax
  class BatchCreateOperation < Operation
    set_callback :success, :after, :batch_success_message
    set_callback :failure, :after, :batch_failure_message

    def batch_success_message
      return unless Hyrax.config.callback.set?(:after_batch_create_success)
      Hyrax.config.callback.run(:after_batch_create_success, user)
    end

    def batch_failure_message
      return unless Hyrax.config.callback.set?(:after_batch_create_failure)
      Hyrax.config.callback.run(:after_batch_create_failure, user)
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.3 app/models/hyrax/batch_create_operation.rb
hyrax-1.1.0 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.2 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.1 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.rc3 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.rc2 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.rc1 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.5 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.beta5 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.beta4 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.beta3 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.beta2 app/models/hyrax/batch_create_operation.rb
hyrax-2.0.0.beta1 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.4 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.3 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.2 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.1 app/models/hyrax/batch_create_operation.rb
hyrax-1.0.0.rc2 app/models/hyrax/batch_create_operation.rb