Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (17 sloc) 0.693 kb
9bfa13b @guilleiguaran attr_accessible and attr_protected raise an exception pointing to use pl...
guilleiguaran authored
1 module ActiveModel
3759e32 @frodsan add :nodoc: directives to AMo::DeprecatedMassAssignmentSecurity [ci skip...
frodsan authored
2 module DeprecatedMassAssignmentSecurity # :nodoc:
9bfa13b @guilleiguaran attr_accessible and attr_protected raise an exception pointing to use pl...
guilleiguaran authored
3 extend ActiveSupport::Concern
4
356eed9 @frodsan add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [ci s...
frodsan authored
5 module ClassMethods # :nodoc:
6 def attr_protected(*args)
9bfa13b @guilleiguaran attr_accessible and attr_protected raise an exception pointing to use pl...
guilleiguaran authored
7 raise "`attr_protected` is extracted out of Rails into a gem. " \
8 "Please use new recommended protection model for params " \
9 "or add `protected_attributes` to your Gemfile to use old one."
10 end
11
356eed9 @frodsan add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [ci s...
frodsan authored
12 def attr_accessible(*args)
9bfa13b @guilleiguaran attr_accessible and attr_protected raise an exception pointing to use pl...
guilleiguaran authored
13 raise "`attr_accessible` is extracted out of Rails into a gem. " \
14 "Please use new recommended protection model for params " \
15 "or add `protected_attributes` to your Gemfile to use old one."
16 end
17 end
18 end
19 end
Something went wrong with that request. Please try again.