Class: Comment

Inherits:
ApplicationRecord show all
Includes:
ActsAsCommentable::Comment
Defined in:
app/models/comment.rb

Instance Method Summary collapse

Instance Method Details

#commentObject


19
20
21
22
23
24
25
# File 'app/models/comment.rb', line 19

def comment
  if spam?
    I18n.translate('comments.marked_as_spam')
  else
    self[:comment]
  end
end