Class: ActivityObject
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActivityObject
- Includes:
- SocialStream::Models::Supertype
- Defined in:
- app/models/activity_object.rb
Instance Method Summary collapse
-
#object ⇒ Object
The object of this activity object.
-
#post_activity ⇒ Object
The activity in which this activity_object was created.
Instance Method Details
#object ⇒ Object
The object of this activity object
9 10 11 12 |
# File 'app/models/activity_object.rb', line 9 def object subtype_instance || actor.try(:subject) end |
#post_activity ⇒ Object
The activity in which this activity_object was created
15 16 17 |
# File 'app/models/activity_object.rb', line 15 def post_activity activities.includes(:activity_verb).where('activity_verbs.name' => 'post').first end |