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