Sha256: 4f0df539cf98c7080aaf6a205d19cbc40a5b55bff26cda235d381242c3e77e28
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
module Gluttonberg class Feed < ActiveRecord::Base self.table_name = "gb_feeds" belongs_to :user belongs_to :feedable, :polymorphic => true attr_accessible :user, :feedable, :feedable_type, :feedable_id, :title, :action_type # Included mixins which are registered by host app for extending functionality MixinManager.load_mixins(self) # Create Feed entry for given object # # @param user [User] User who has done current action # @param object [< ActiveRecord] Object which is created/modified/deleted # @param title [String] User friendly Message for current action # @param action_type [String] Action type e.g, created, updated, deleted def self.log(user,object,title,action_type) self.create(:user => user , :feedable => object, :title => title , :action_type => action_type) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gluttonberg-core-3.0.2 | app/models/gluttonberg/feed.rb |
gluttonberg-core-3.0.1 | app/models/gluttonberg/feed.rb |
gluttonberg-core-3.0.0 | app/models/gluttonberg/feed.rb |