class Mongoid::Errors::TooManyNestedAttributeRecords
This error is raised when trying to create set nested records above the specified :limit
@example Create the error.
TooManyNestedAttributeRecords.new('association', limit)
Public Class Methods
new(association, limit)
click to toggle source
Calls superclass method
# File lib/mongoid/errors/too_many_nested_attribute_records.rb, line 13 def initialize(association, limit) super( compose_message( "too_many_nested_attribute_records", { association: association, limit: limit } ) ) end