instance method attributes_protected_by_default

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private — implementation detail, not part of the public API

Signature

attributes_protected_by_default()

The primary key and inheritance column can never be set by mass-assignment for security reasons.

Source
# File activerecord/lib/active_record/attribute_assignment.rb, line 12
      def attributes_protected_by_default
        default = [ primary_key, inheritance_column ]
        default << 'id' unless primary_key.eql? 'id'
        default
      end

Defined in activerecord/lib/active_record/attribute_assignment.rb line 12 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeAssignment::ClassMethods

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close