Module: Transit::Model::Comments

Extended by:
ActiveSupport::Concern
Defined in:
lib/transit/model/comments.rb

Instance Method Summary collapse

Instance Method Details

#has_comments?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/transit/model/comments.rb', line 12

def has_comments?
  self.comment_count >= 1
end