Module MuckActivity::ActMethods
In: lib/muck_activities/active_record/acts/muck_activity.rb
lib/muck_activities/muck_activity.rb

Methods

Included Modules

InstanceMethods InstanceMethods InstanceMethods InstanceMethods

Public Instance methods

acts_as_activity_source gives the class it is called on a method called add_activity that can add activities into a feed.

[Source]

    # File lib/muck_activities/muck_activity.rb, line 22
22:     def acts_as_activity_source
23:       unless included_modules.include? InstanceMethods
24:         include InstanceMethods
25:       end
26:     end

acts_as_activity_source gives the class it is called on a method called add_activity that can add activities into a feed.

[Source]

    # File lib/muck_activities/active_record/acts/muck_activity.rb, line 22
22:     def acts_as_activity_source
23:       unless included_modules.include? InstanceMethods
24:         include InstanceMethods
25:       end
26:     end

has_activities gives the class it is called on an activity feed and a method called add_activity that can add activities into a feed. Retrieve activity feed items via object.activities. ie @user.activities.

[Source]

    # File lib/muck_activities/muck_activity.rb, line 12
12:     def has_activities
13:       unless included_modules.include? InstanceMethods
14:         has_many :activity_feeds, :as => :ownable
15:         has_many :activities, :through => :activity_feeds, :order => 'created_at desc'
16:         include InstanceMethods
17:       end
18:     end

has_activities gives the class it is called on an activity feed and a method called add_activity that can add activities into a feed. Retrieve activity feed items via object.activities. ie @user.activities.

[Source]

    # File lib/muck_activities/active_record/acts/muck_activity.rb, line 12
12:     def has_activities
13:       unless included_modules.include? InstanceMethods
14:         has_many :activity_feeds, :as => :ownable
15:         has_many :activities, :through => :activity_feeds, :order => 'created_at desc'
16:         include InstanceMethods
17:       end
18:     end

[Validate]