instance method
protected_attributes
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
protected_attributes()
No documentation comment.
Source
# File activemodel/lib/active_model/mass_assignment_security.rb, line 131
def protected_attributes
self._protected_attributes ||= BlackList.new(attributes_protected_by_default).tap do |w|
w.logger = self.logger if self.respond_to?(:logger)
end
end
Defined in activemodel/lib/active_model/mass_assignment_security.rb line 131
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::MassAssignmentSecurity::ClassMethods