Exception: ActiveRecord::SoleRecordExceeded
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 Active Record finds multiple records but only expected one.
Class Method Summary
- .new(record = nil) ⇒ SoleRecordExceeded constructor
Instance Attribute Summary
- #record readonly
Constructor Details
.new(record = nil) ⇒ SoleRecordExceeded
Instance Attribute Details
#record (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 193
attr_reader :record