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

Version Path
gluttonberg-core-2.6.4 app/models/gluttonberg/feed.rb
gluttonberg-core-2.6.3 app/models/gluttonberg/feed.rb
gluttonberg-core-2.6.2 app/models/gluttonberg/feed.rb
gluttonberg-core-2.6.1 app/models/gluttonberg/feed.rb
gluttonberg-core-2.6.0 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.9 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.8 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.7 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.6 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.5 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.4 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.3 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.2 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5.1 app/models/gluttonberg/feed.rb
gluttonberg-core-2.5 app/models/gluttonberg/feed.rb