aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Garrison <mattsgarrison@gmail.com>2012-04-18 10:40:04 -0500
committerMatt Garrison <mattsgarrison@gmail.com>2012-04-18 10:40:04 -0500
commitdbeed9bb77d43071811e3ed3b155403f8e91d993 (patch)
tree4a9bc32fa143445c1a2aa584e5a2241c2f89b45e
parent70f7be1652c43b8a4290f348d102e280412a86e7 (diff)
downloadrefinerycms-blog-dbeed9bb77d43071811e3ed3b155403f8e91d993.tar.gz
refinerycms-blog-dbeed9bb77d43071811e3ed3b155403f8e91d993.tar.bz2
refinerycms-blog-dbeed9bb77d43071811e3ed3b155403f8e91d993.zip
Adding attr_accessible for Rails 3.2 mass assignment fixes.
-rw-r--r--app/models/refinery/categorization.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/refinery/categorization.rb b/app/models/refinery/categorization.rb
index 086c2d1..ec51ea7 100644
--- a/app/models/refinery/categorization.rb
+++ b/app/models/refinery/categorization.rb
@@ -4,6 +4,7 @@ module Refinery
self.table_name = 'refinery_blog_categories_blog_posts'
belongs_to :blog_post, :class_name => 'Refinery::Blog::Post', :foreign_key => :blog_post_id
belongs_to :blog_category, :class_name => 'Refinery::Blog::Category', :foreign_key => :blog_category_id
-
+
+ attr_accessible :blog_category_id, :blog_post_id
end
end \ No newline at end of file