Sha256: 3522504b8d4f281748aa3ba1fed46231df06137395cfc8e12aef76639b11b020
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true # A generic job for sending events about repository objects to a user and their followers. # # @attr [String] repo_object the object event is specified for # class ContentEventJob < EventJob attr_reader :repo_object def perform(repo_object, depositor) @repo_object = repo_object super(depositor) log_event(repo_object) end # Log the event to the object's stream def log_event(repo_object) repo_object.log_event(event) end # log the event to the users profile stream def log_user_event(depositor) depositor&.log_profile_event(event) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.6.0 | app/jobs/content_event_job.rb |
hyrax-3.5.0 | app/jobs/content_event_job.rb |