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 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
- .new(errors) ⇒ MultiparameterAssignmentErrors constructor
Instance Attribute Summary
- #errors readonly
Constructor Details
.new(errors) ⇒ MultiparameterAssignmentErrors
Instance Attribute Details
#errors (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 211
attr_reader :errors