Sha256: 3220d3df388ef594aeea3e63e7555bf13eece91742f37f53b8e469bc0e114d23
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
# A specific job to log a user unfollowing another user to a user's activity stream class UserUnfollowEventJob < EventJob attr_accessor :unfollowee_id alias_attribute :unfollower_id, :depositor_id def initialize(unfollower_id, unfollowee_id) super(unfollower_id) @unfollowee_id = unfollowee_id end def run super unfollowee = User.find_by_user_key(unfollowee_id) unfollowee.log_event(event) end def action @action ||= "User #{link_to_profile unfollower_id} has unfollowed #{link_to_profile unfollowee_id}" end end
Version data entries
5 entries across 5 versions & 1 rubygems