Permalink
Browse files

Merge pull request #8260 from sauliusg/improved_deprecation_notice

Point user to strong_parameters as the new protection model [ci skip]
  • Loading branch information...
2 parents 06dd7e4 + 61edea0 commit 5a3e258370ebebf5377897703ad9625de72cbcf8 @rafaelfranca rafaelfranca committed Nov 18, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 activemodel/lib/active_model/deprecated_mass_assignment_security.rb
@@ -5,14 +5,16 @@ module DeprecatedMassAssignmentSecurity # :nodoc:
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

0 comments on commit 5a3e258

Please sign in to comment.