Adding attr_accessible for Rails 3.2 mass assignment fixes.
This commit is contained in:
parent
70f7be1652
commit
dbeed9bb77
1 changed files with 2 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue