Sha256: ff64db7c7d5f7841f62c1e1df5720592338c278f048b8d674e8d38bcd782537b
Contents?: true
Size: 561 Bytes
Versions: 36
Compression:
Stored size: 561 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, rollup_messages) end end end
Version data entries
36 entries across 36 versions & 1 rubygems