Files

Class Index [+]

Quicksearch

ActiveRecord::AttributeAssignment::ClassMethods

Private Instance Methods

attributes_protected_by_default() click to toggle source

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

    # File lib/active_record/attribute_assignment.rb, line 12
12:       def attributes_protected_by_default
13:         default = [ primary_key, inheritance_column ]
14:         default << 'id' unless primary_key.eql? 'id'
15:         default
16:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.