Class: BlogCategory
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BlogCategory
- Defined in:
- app/models/blog_category.rb
Instance Method Summary collapse
Instance Method Details
#post_count ⇒ Object
12 13 14 |
# File 'app/models/blog_category.rb', line 12 def post_count posts.select(&:live?).count end |