Exception: Mongoid::Errors::TooManyNestedAttributeRecords
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::TooManyNestedAttributeRecords
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/too_many_nested_attribute_records.rb
Overview
This error is raised when trying to create set nested records above the specified :limit
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(association, limit) ⇒ TooManyNestedAttributeRecords
constructor
A new instance of TooManyNestedAttributeRecords.
Methods inherited from MongoidError
Constructor Details
#initialize(association, limit) ⇒ TooManyNestedAttributeRecords
Returns a new instance of TooManyNestedAttributeRecords.
13 14 15 16 17 18 19 20 |
# File 'build/mongoid-7.3/lib/mongoid/errors/too_many_nested_attribute_records.rb', line 13 def initialize(association, limit) super( ( "too_many_nested_attribute_records", { association: association, limit: limit } ) ) end |