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 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) ⇒ MultiparameterAssignmentErrors

[ GitHub ]

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

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errors (readonly)

[ GitHub ]

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

attr_reader :errors