Sha256: 40446a6a36a4d08e57031ec840fb5266c39eab276993f9299113d386737e1861
Contents?: true
Size: 446 Bytes
Versions: 15
Compression:
Stored size: 446 Bytes
Contents
module Gluttonberg class Feed < ActiveRecord::Base belongs_to :user belongs_to :feedable, :polymorphic => true self.table_name = "gb_feeds" attr_accessible :user, :feedable_type, :feedable_id, :title, :action_type 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 end end
Version data entries
15 entries across 15 versions & 1 rubygems