Skip to content

Commit

Permalink
Adding attr_accessible for Rails 3.2 mass assignment fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsgarrison committed Apr 18, 2012
1 parent 70f7be1 commit dbeed9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/refinery/categorization.rb
Expand Up @@ -4,6 +4,7 @@ class Categorization < ActiveRecord::Base
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

0 comments on commit dbeed9b

Please sign in to comment.