Class: Gluttonberg::Feed

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gluttonberg/feed.rb

Class Method Summary collapse

Class Method Details

.log(user, object, title, action_type) ⇒ Object



8
9
10
# File 'app/models/gluttonberg/feed.rb', line 8

def self.log(user,object,title,action_type)
  self.create(:user => user , :feedable_type => object.class.to_s,  :feedable_id => object.id, :title => title , :action_type => action_type)
end