method
protected_attributes_configs
v3.1.0 -
Show latest stable
- Class:
ActiveModel::MassAssignmentSecurity::ClassMethods
protected_attributes_configs()private
No documentation available.
# File activemodel/lib/active_model/mass_assignment_security.rb, line 189
def protected_attributes_configs
self._protected_attributes ||= begin
default_black_list = BlackList.new(attributes_protected_by_default).tap do |w|
w.logger = self.logger if self.respond_to?(:logger)
end
Hash.new(default_black_list)
end
end