aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/refinery/blog/category.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/refinery/blog/category.rb b/app/models/refinery/blog/category.rb
index 6deb5c5..2935c89 100644
--- a/app/models/refinery/blog/category.rb
+++ b/app/models/refinery/blog/category.rb
@@ -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