aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/refinery/blog/category.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/refinery/blog/category.rb b/app/models/refinery/blog/category.rb
index 05e6994..6deb5c5 100644
--- a/app/models/refinery/blog/category.rb
+++ b/app/models/refinery/blog/category.rb
@@ -11,6 +11,8 @@ module Refinery
validates :title, :presence => true, :uniqueness => true
+ attr_accessible :title
+
def post_count
posts.select(&:live?).count
end
@@ -20,4 +22,4 @@ module Refinery
end
end
-end \ No newline at end of file
+end