Class: Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comment
- Includes:
- SocialStream::Models::Object
- Defined in:
- app/models/comment.rb
Instance Method Summary collapse
Instance Method Details
#parent_post ⇒ Object
14 15 16 17 |
# File 'app/models/comment.rb', line 14 def parent_post _activity_parent_id && _activity_parent.direct_object || post_activity.parent.direct_object end |
#title ⇒ Object
19 20 21 |
# File 'app/models/comment.rb', line 19 def title description.truncate(30, :separator =>' ') end |