Merge pull request #238 from GeekOnCoffee/fix_count

Adding Finder Method to utilize count
This commit is contained in:
Philip Arndt 2012-05-19 20:03:36 -07:00
commit 976b607ff5

View file

@ -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