instance method protected_attributes

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

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

Type at least 2 characters to search.

↑↓ navigate · open · esc close