aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-04-01 16:23:15 -0700
committerPete Higgins <pete@peterhiggins.org>2012-04-01 16:23:15 -0700
commit6df59131f1a6c34b6dd4c0f3a25f7a18b143c794 (patch)
tree5d98c4ef1199d37d837007fdc26f4d42c141540d /app
parent2a00257420c2e9da28d8996136ae1b222c8a2b40 (diff)
downloadrefinerycms-blog-6df59131f1a6c34b6dd4c0f3a25f7a18b143c794.tar.gz
refinerycms-blog-6df59131f1a6c34b6dd4c0f3a25f7a18b143c794.tar.bz2
refinerycms-blog-6df59131f1a6c34b6dd4c0f3a25f7a18b143c794.zip
Fix MassAssignmentSecurity::Error in integration test.
Diffstat (limited to 'app')
-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