Class: Polivalente::Comment

Inherits:
ApplicationRecord show all
Includes:
Commentable, ContentHashable, Reactable, Sortable, UserOwned
Defined in:
app/models/polivalente/comment.rb

Instance Method Summary collapse

Methods included from ContentHashable

#compute_content_hash

Instance Method Details

#bylineObject



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

def 
  "by #{author.name}"
end

#summaryObject



22
23
24
# File 'app/models/polivalente/comment.rb', line 22

def summary
  "#{truncate(content)}"
end