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:
parent
aff1872a87
commit
61edea05c3
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue