Skip to content
Browse files

Can't mass-assign protected attributes: category_ids

  • Loading branch information...
1 parent 9cd37ba commit 4ad6e8b7368eb327729900f0c857fc0363bc079d @lis2 lis2 committed May 30, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −1 app/models/cms/file.rb
  2. +2 −1 app/models/cms/page.rb
  3. +2 −1 app/models/cms/snippet.rb
View
3 app/models/cms/file.rb
@@ -14,7 +14,8 @@ class Cms::File < ActiveRecord::Base
:file,
:dimentions,
:label,
- :description
+ :description,
+ :category_ids
# -- AR Extensions --------------------------------------------------------
has_attached_file :file, ComfortableMexicanSofa.config.upload_file_options.merge(
View
3 app/models/cms/page.rb
@@ -11,7 +11,8 @@ class Cms::Page < ActiveRecord::Base
:parent, :parent_id,
:blocks_attributes,
:is_published,
- :target_page_id
+ :target_page_id,
+ :category_ids
cms_acts_as_tree :counter_cache => :children_count
cms_is_categorized
View
3 app/models/cms/snippet.rb
@@ -10,7 +10,8 @@ class Cms::Snippet < ActiveRecord::Base
attr_accessible :identifier,
:label,
- :content
+ :content,
+ :category_ids
# -- Relationships --------------------------------------------------------
belongs_to :site

0 comments on commit 4ad6e8b

Please sign in to comment.
Something went wrong with that request. Please try again.