Skip to content

Commit

Permalink
Can't mass-assign protected attributes: target_page_id, is_published …
Browse files Browse the repository at this point in the history
…- fix
  • Loading branch information
lis2 committed May 30, 2012
1 parent ce46ad4 commit 9cd37ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/models/cms/page.rb
Expand Up @@ -9,7 +9,9 @@ class Cms::Page < ActiveRecord::Base
:label,
:slug,
:parent, :parent_id,
:blocks_attributes
:blocks_attributes,
:is_published,
:target_page_id

cms_acts_as_tree :counter_cache => :children_count
cms_is_categorized
Expand Down
2 changes: 1 addition & 1 deletion test/functional/cms_admin/pages_controller_test.rb
Expand Up @@ -439,4 +439,4 @@ def test_reorder
assert_equal 0, page_two.position
end

end
end

0 comments on commit 9cd37ba

Please sign in to comment.