lib/muck-friends/models/friend.rb
# Add an activity that indicates the users have become friends
Add an activity that indicates the users have become friends
Add an activity that indicates the users have become friends
def add_friends_with_activity
        return unless MuckFriends.configuration.enable_friend_activity
        content = I18n.t('muck.friends.friends_with', :inviter => self.inviter.full_name, :invited => self.invited.full_name)
        add_activity(self.inviter.feed_to + self.invited.feed_to, self.inviter, self, 'friends_with', '', content)
      end
def add_friends_with_activity return unless MuckFriends . configuration . enable_friend_activity content = I18n . t ( 'muck.friends.friends_with' , :inviter => self . inviter . full_name , :invited => self . invited . full_name ) add_activity ( self . inviter . feed_to + self . invited . feed_to , self . inviter , self , 'friends_with' , '' , content ) end
Add an activity that indicates the users have become friends
Add an activity that indicates the users have become friends