lib/nelumba-mongodb/person.rb
# Add the given Activity to our list of favorites.
Add the given Activity to our list of favorites.
Add the given Activity to our list of favorites .
def favorite!(activity)
      self.favorites.repost! activity
      self.activities.post!(:verb                 => :favorite,
                            :actor                => self,
                            :external_object_id   => activity.id,
                            :external_object_type => 'Activity')
    end
def favorite! ( activity ) self . favorites . repost! activity self . activities . post! ( :verb => :favorite , :actor => self , :external_object_id => activity . id , :external_object_type => 'Activity' ) end
Add the given Activity to our list of favorites.
Add the given Activity to our list of favorites .
activity