Class: Polivalente::Comment
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Polivalente::Comment
- Includes:
- Commentable, ContentHashable, Reactable, Sortable, UserOwned
- Defined in:
- app/models/polivalente/comment.rb
Instance Method Summary collapse
Methods included from ContentHashable
Instance Method Details
#byline ⇒ Object
18 19 20 |
# File 'app/models/polivalente/comment.rb', line 18 def "by #{.name}" end |
#summary ⇒ Object
22 23 24 |
# File 'app/models/polivalente/comment.rb', line 22 def summary "#{truncate(content)}" end |