Class Index [+]

Quicksearch

ActiveModel::MassAssignmentSecurity

Active Model Mass-Assignment Security

Protected Instance Methods

mass_assignment_authorizer(role) click to toggle source
     # File lib/active_model/mass_assignment_security.rb, line 233
233:     def mass_assignment_authorizer(role)
234:       self.class.active_authorizer[role || :default]
235:     end
sanitize_for_mass_assignment(attributes, role = nil) click to toggle source
     # File lib/active_model/mass_assignment_security.rb, line 229
229:     def sanitize_for_mass_assignment(attributes, role = nil)
230:       _mass_assignment_sanitizer.sanitize(attributes, mass_assignment_authorizer(role))
231:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.