blob: c25cd9367d2e1fd19a4fc15f708e10e5491bceb2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module ActiveModel
module DeprecatedMassAssignmentSecurity # :nodoc:
extend ActiveSupport::Concern
module ClassMethods
def attr_protected(*args) # :nodoc:
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
def attr_accessible(*args) # :nodoc:
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
|