mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
21 lines
763 B
Ruby
21 lines
763 B
Ruby
module ActiveModel
|
|
module DeprecatedMassAssignmentSecurity # :nodoc:
|
|
extend ActiveSupport::Concern
|
|
|
|
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" \
|
|
"(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" \
|
|
"(strong_parameters) or add `protected_attributes` to your " \
|
|
"Gemfile to use old one."
|
|
end
|
|
end
|
|
end
|
|
end
|