Module: ActiveModel::DeprecatedMassAssignmentSecurity::ClassMethods

Defined in:
lib/active_model/deprecated_mass_assignment_security.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#attr_accessible(*args) ⇒ Object



13
14
15
16
17
18
# File 'lib/active_model/deprecated_mass_assignment_security.rb', line 13

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

#attr_protected(*args) ⇒ Object



6
7
8
9
10
11
# File 'lib/active_model/deprecated_mass_assignment_security.rb', line 6

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