1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Point user to strong_parameters as the new protection model [ci skip]

This commit is contained in:
Saulius Grigaliunas 2012-11-18 15:35:06 +02:00
parent aff1872a87
commit 61edea05c3

View file

@ -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