Sha256: 651bf3b2e6a10cb3f4d0d830dcc09dbeed92820a0807947de6bbb6a17fe1e616

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 Bytes

Contents

# Log user following another user to activity streams
class UserFollowEventJob < EventJob
  attr_accessor :followee, :follower

  def perform(follower, followee)
    @follower = follower
    @followee = followee
    super(follower)
  end

  # log the event to the users event stream
  def log_user_event(user)
    super
    # Fan out the event to followee
    followee.log_event(event)
  end

  def action
    "User #{link_to_profile follower} is now following #{link_to_profile followee}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.1.0 app/jobs/user_follow_event_job.rb
sufia-7.0.0 app/jobs/user_follow_event_job.rb
sufia-7.0.0.rc2 app/jobs/user_follow_event_job.rb
sufia-7.0.0.rc1 app/jobs/user_follow_event_job.rb
sufia-7.0.0.beta4 app/jobs/user_follow_event_job.rb
sufia-7.0.0.beta3 app/jobs/user_follow_event_job.rb
sufia-7.0.0.beta2 app/jobs/user_follow_event_job.rb
sufia-7.0.0.beta1 app/jobs/user_follow_event_job.rb