Module: ActiveModel::MassAssignmentSecurity

### Home Classes Methods

### In Files

- lib/active_model/mass_assignment_security.rb
- lib/active_model/mass_assignment_security/permission_set.rb
- lib/active_model/mass_assignment_security/sanitizer.rb

### Namespace

- MODULE ActiveModel::MassAssignmentSecurity::ClassMethods
- CLASS ActiveModel::MassAssignmentSecurity::BlackList
- CLASS ActiveModel::MassAssignmentSecurity::Error
- CLASS ActiveModel::MassAssignmentSecurity::LoggerSanitizer
- CLASS ActiveModel::MassAssignmentSecurity::PermissionSet
- CLASS ActiveModel::MassAssignmentSecurity::Sanitizer
- CLASS ActiveModel::MassAssignmentSecurity::StrictSanitizer
- CLASS ActiveModel::MassAssignmentSecurity::WhiteList

### Methods

- #mass_assignment_authorizer
- #sanitize_for_mass_assignment

### Class/Module Index

Quicksearch

- ActiveModel
- ActiveModel::AttributeMethods
- ActiveModel::AttributeMethods::ClassMethods
- ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher
- ActiveModel::BlockValidator
- ActiveModel::Callbacks
- ActiveModel::Conversion
- ActiveModel::Dirty
- ActiveModel::EachValidator
- ActiveModel::Errors
- ActiveModel::Lint
- ActiveModel::Lint::Tests
- ActiveModel::MassAssignmentSecurity
- ActiveModel::MassAssignmentSecurity::BlackList
- ActiveModel::MassAssignmentSecurity::ClassMethods
- ActiveModel::MassAssignmentSecurity::Error
- ActiveModel::MassAssignmentSecurity::LoggerSanitizer
- ActiveModel::MassAssignmentSecurity::PermissionSet
- ActiveModel::MassAssignmentSecurity::Sanitizer
- ActiveModel::MassAssignmentSecurity::StrictSanitizer
- ActiveModel::MassAssignmentSecurity::WhiteList
- ActiveModel::MissingAttributeError
- ActiveModel::Name
- ActiveModel::Naming
- ActiveModel::Observer
- ActiveModel::ObserverArray
- ActiveModel::Observing
- ActiveModel::Observing::ClassMethods
- ActiveModel::SecurePassword
- ActiveModel::SecurePassword::ClassMethods
- ActiveModel::SecurePassword::InstanceMethodsOnActivation
- ActiveModel::Serialization
- ActiveModel::Serializers
- ActiveModel::Serializers::JSON
- ActiveModel::Serializers::Xml
- ActiveModel::StrictValidationFailed
- ActiveModel::Translation
- ActiveModel::Validations
- ActiveModel::Validations::AcceptanceValidator
- ActiveModel::Validations::Callbacks
- ActiveModel::Validations::Callbacks::ClassMethods
- ActiveModel::Validations::ClassMethods
- ActiveModel::Validations::ConfirmationValidator
- ActiveModel::Validations::ExclusionValidator
- ActiveModel::Validations::FormatValidator
- ActiveModel::Validations::HelperMethods
- ActiveModel::Validations::InclusionValidator
- ActiveModel::Validations::LengthValidator
- ActiveModel::Validations::NumericalityValidator
- ActiveModel::Validations::PresenceValidator
- ActiveModel::Validations::WithValidator
- ActiveModel::Validator

No matching classes.

# 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
    def mass_assignment_authorizer(role)
      self.class.active_authorizer[role || :default]
    end

sanitize_for_mass_assignment(attributes, role = nil) click to toggle source

    # File 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.