Sha256: e3a3e5c335d1360c823a7ed3bb268b5e2ffb82fc96a17e3224e284a12afd2779

Contents?: true

Size: 742 Bytes

Versions: 5

Compression:

Stored size: 742 Bytes

Contents

Sufia.config.after_create_content = lambda { |generic_file, user|
  Sufia.queue.push(ContentDepositEventJob.new(generic_file.id, user.user_key))
}

Sufia.config.after_revert_content = lambda { |generic_file, user, revision|
  Sufia.queue.push(ContentRestoredVersionEventJob.new(generic_file.id, user.user_key, revision))
}

Sufia.config.after_update_content = lambda { |generic_file, user|
  Sufia.queue.push(ContentNewVersionEventJob.new(generic_file.id, user.user_key))
}

Sufia.config.after_update_metadata = lambda { |generic_file, user|
  Sufia.queue.push(ContentUpdateEventJob.new(generic_file.id, user.user_key))
}

Sufia.config.after_destroy = lambda { |pid, user|
  Sufia.queue.push(ContentDeleteEventJob.new(pid, user.user_key))
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sufia-6.0.0.rc4 config/initializers/sufia_events.rb
sufia-6.0.0.rc3 config/initializers/sufia_events.rb
sufia-6.0.0.rc2 config/initializers/sufia_events.rb
sufia-6.0.0.rc1 config/initializers/sufia_events.rb
sufia-6.0.0.beta1 config/initializers/sufia_events.rb