Class: Comment

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
SocialStream::Models::Object
Defined in:
app/models/comment.rb

Instance Method Summary collapse

Instance Method Details

#parent_postObject



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

#titleObject



19
20
21
# File 'app/models/comment.rb', line 19

def title
  description.truncate(30, :separator =>' ')
end