Methods
L
N
P
Class Public methods
new(target)
# File activemodel/lib/active_model/mass_assignment_security/sanitizer.rb, line 31
def initialize(target)
  @target = target
  super
end
Instance Public methods
logger?()
# File activemodel/lib/active_model/mass_assignment_security/sanitizer.rb, line 36
def logger?
  @target.respond_to?(:logger) && @target.logger
end
process_removed_attributes(attrs)
# File activemodel/lib/active_model/mass_assignment_security/sanitizer.rb, line 40
def process_removed_attributes(attrs)
  logger.debug "WARNING: Can't mass-assign protected attributes: #{attrs.join(', ')}" if logger?
end