Module: Freeberry::Models::Comment::InstanceMethods
- Defined in:
- lib/freeberry/models/comment.rb
Instance Method Summary collapse
Instance Method Details
#comments_count ⇒ Object
26 27 28 29 |
# File 'lib/freeberry/models/comment.rb', line 26 def comments_count @comments_count ||= siblings.count @comments_count end |
#siblings ⇒ Object
31 32 33 |
# File 'lib/freeberry/models/comment.rb', line 31 def siblings self.class.siblings_for(self) end |