aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-24 15:03:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-24 15:04:57 -0300
commitd1c5f879b0f8fbb991c8948eaba02fe2c69156bb (patch)
tree7a60c90a2fcba78ec959e7aa1f8eb9181fd60fe7 /guides
parentd5ec8efdafaf24661b7d40478ca91dfda9464f93 (diff)
downloadrails-d1c5f879b0f8fbb991c8948eaba02fe2c69156bb.tar.gz
rails-d1c5f879b0f8fbb991c8948eaba02fe2c69156bb.tar.bz2
rails-d1c5f879b0f8fbb991c8948eaba02fe2c69156bb.zip
Mention the removal of attr_accessible and attr_protected in the upgrading guide
Point to the Protected Attributes gem to those who want a smoothly upgrade path before to change to use Strong Parameters. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 18baed55b5..f01ed9c3ed 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -45,6 +45,8 @@ Rails 4.0 no longer supports loading plugins from `vendor/plugins`. You must rep
* Rails 4.0 has changed `serialized_attributes` and `attr_readonly` to class methods only. Now you shouldn't use instance methods, it's deprecated. You must change them, e.g. `self.serialized_attributes` to `self.class.serialized_attributes`.
+* Rails 4.0 has removed `attr_accessible` and `attr_protected` feature in favor of Strong Parameters. You can use the [Protected Attributes gem](https://github.com/rails/protected_attributes) to a smoothly upgrade path.
+
### Active Model
* Rails 4.0 has changed how errors attach with the `ActiveModel::Validations::ConfirmationValidator`. Now when confirmation validations fail the error will be attached to `:#{attribute}_confirmation` instead of `attribute`.