Sha256: 37c40a78bd51cce6011aad61ca533c716b6f58b98191699a785dfe18735806ad

Contents?: true

Size: 579 Bytes

Versions: 66

Compression:

Stored size: 579 Bytes

Contents

# 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

66 entries across 66 versions & 3 rubygems

Version Path
hyrax-2.9.6 app/jobs/content_event_job.rb
hyrax-2.9.5 app/jobs/content_event_job.rb
hyrax-2.9.4 app/jobs/content_event_job.rb
hyrax-2.9.3 app/jobs/content_event_job.rb
hyrax-2.9.2 app/jobs/content_event_job.rb
hyrax-2.9.1 app/jobs/content_event_job.rb
hyrax-2.9.0 app/jobs/content_event_job.rb
hyrax-2.8.0 app/jobs/content_event_job.rb
hyrax-2.7.2 app/jobs/content_event_job.rb
hyrax-2.7.1 app/jobs/content_event_job.rb
hyrax-2.7.0 app/jobs/content_event_job.rb
hyrax-2.6.0 app/jobs/content_event_job.rb
hyrax-3.0.0.pre.rc1 app/jobs/content_event_job.rb
hyrax-3.0.0.pre.beta3 app/jobs/content_event_job.rb
hyrax-2.5.1 app/jobs/content_event_job.rb
hyrax-2.5.0 app/jobs/content_event_job.rb
hyrax-3.0.0.pre.beta2 app/jobs/content_event_job.rb
hyrax-2.4.1 app/jobs/content_event_job.rb
hyrax-3.0.0.pre.beta1 app/jobs/content_event_job.rb
hyrax-2.4.0 app/jobs/content_event_job.rb