2012-09-01 23:36:27 -04:00
|
|
|
module ActiveModel
|
2012-09-20 01:08:21 -04:00
|
|
|
module DeprecatedMassAssignmentSecurity # :nodoc:
|
2012-09-01 23:36:27 -04:00
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
2012-09-20 13:14:53 -04:00
|
|
|
module ClassMethods # :nodoc:
|
|
|
|
def attr_protected(*args)
|
2012-09-01 23:36:27 -04:00
|
|
|
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."
|
|
|
|
end
|
|
|
|
|
2012-09-20 13:14:53 -04:00
|
|
|
def attr_accessible(*args)
|
2012-09-01 23:36:27 -04:00
|
|
|
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."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|