Class: BlogCategory

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/blog_category.rb

Overview

@Name :BlogCategory model

@Created at :12-06-2012
@Updated at  :12-06-2012
@Purpose :Needed for initailizing activerecord for blog_categories table in rails
@Company : Mindfire Solutions

Instance Method Summary collapse

Instance Method Details

#post_countObject



26
27
28
# File 'app/models/blog_category.rb', line 26

def post_count
  posts.select(&:live?).count
end