Active Model Mass-Assignment Security

Namespace
Methods
M
S
Instance Protected methods
mass_assignment_authorizer(role)
# File activemodel/lib/active_model/mass_assignment_security.rb, line 233
def mass_assignment_authorizer(role)
  self.class.active_authorizer[role || :default]
end
sanitize_for_mass_assignment(attributes, role = nil)
# File activemodel/lib/active_model/mass_assignment_security.rb, line 229
def sanitize_for_mass_assignment(attributes, role = nil)
  _mass_assignment_sanitizer.sanitize(attributes, mass_assignment_authorizer(role))
end