aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-18 05:49:18 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-18 05:49:18 -0800
commit5a3e258370ebebf5377897703ad9625de72cbcf8 (patch)
tree3fbf290cd0f6cc88379f97abbe969683a574adc3 /activemodel
parent06dd7e48ad58a7e7aced0e25ce2c97514ea6a472 (diff)
parent61edea05c3029af40534706ff40572868f113a1e (diff)
downloadrails-5a3e258370ebebf5377897703ad9625de72cbcf8.tar.gz
rails-5a3e258370ebebf5377897703ad9625de72cbcf8.tar.bz2
rails-5a3e258370ebebf5377897703ad9625de72cbcf8.zip
Merge pull request #8260 from sauliusg/improved_deprecation_notice
Point user to strong_parameters as the new protection model [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/deprecated_mass_assignment_security.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/deprecated_mass_assignment_security.rb b/activemodel/lib/active_model/deprecated_mass_assignment_security.rb
index 2ea69991fc..1f409c87b9 100644
--- a/activemodel/lib/active_model/deprecated_mass_assignment_security.rb
+++ b/activemodel/lib/active_model/deprecated_mass_assignment_security.rb
@@ -5,14 +5,16 @@ module ActiveModel
module ClassMethods # :nodoc:
def attr_protected(*args)
raise "`attr_protected` is extracted out of Rails into a gem. " \
- "Please use new recommended protection model for params " \
- "or add `protected_attributes` to your Gemfile to use old one."
+ "Please use new recommended protection model for params" \
+ "(strong_parameters) or add `protected_attributes` to your " \
+ "Gemfile to use old one."
end
def attr_accessible(*args)
raise "`attr_accessible` is extracted out of Rails into a gem. " \
- "Please use new recommended protection model for params " \
- "or add `protected_attributes` to your Gemfile to use old one."
+ "Please use new recommended protection model for params" \
+ "(strong_parameters) or add `protected_attributes` to your " \
+ "Gemfile to use old one."
end
end
end