Merge pull request #238 from GeekOnCoffee/fix_count
Adding Finder Method to utilize count
This commit is contained in:
commit
976b607ff5
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Refinery
|
|||
attr_accessible :title
|
||||
|
||||
def post_count
|
||||
posts.select(&:live?).count
|
||||
posts.live.count
|
||||
end
|
||||
|
||||
# how many items to show per page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue