Class Index [+]

Quicksearch

ActiveModel::MassAssignmentSecurity::LoggerSanitizer

Public Class Methods

new(target) click to toggle source
    # File lib/active_model/mass_assignment_security/sanitizer.rb, line 31
31:       def initialize(target)
32:         @target = target
33:         super
34:       end

Public Instance Methods

logger?() click to toggle source
    # File lib/active_model/mass_assignment_security/sanitizer.rb, line 36
36:       def logger?
37:         @target.respond_to?(:logger) && @target.logger
38:       end
process_removed_attributes(attrs) click to toggle source
    # File lib/active_model/mass_assignment_security/sanitizer.rb, line 40
40:       def process_removed_attributes(attrs)
41:         logger.debug "WARNING: Can't mass-assign protected attributes: #{attrs.join(', ')}" if logger?
42:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.