123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::MultiparameterAssignmentErrors

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ActiveRecordError, StandardError
Instance Chain:
self, ActiveRecordError, StandardError
Inherits: ActiveRecord::ActiveRecordError
Defined in: activerecord/lib/active_record/errors.rb

Overview

Raised when there are multiple errors while doing a mass assignment through the {ActiveRecord::Base#attributes=} method. The exception has an #errors property that contains an array of AttributeAssignmentError objects, each corresponding to the error while assigning to an attribute.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(errors = nil) ⇒ MultiparameterAssignmentErrors

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 439

def initialize(errors = nil)
  @errors = errors
end

Instance Attribute Details

#errors (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 437

attr_reader :errors