Sha256: 399a81307eb17250dd7135f8876aa7cc89634e36ad783ffb684e5faf4c30ec7f

Contents?: true

Size: 528 Bytes

Versions: 105

Compression:

Stored size: 528 Bytes

Contents

module Mongoid
  module Errors

    # This error is raised when trying to create set nested records above the
    # specified :limit
    #
    # @example Create the error.
    #   TooManyNestedAttributeRecords.new('association', limit)
    class TooManyNestedAttributeRecords < MongoidError
      def initialize(association, limit)
        super(
          compose_message(
            "too_many_nested_attribute_records",
            { association: association, limit: limit }
          )
        )
      end
    end
  end
end

Version data entries

105 entries across 100 versions & 7 rubygems

Version Path
mongoid-7.0.13 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.12 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.8 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.11 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.10 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.7 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.8 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.7 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.6 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.4.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.0.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.4.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.4.0 lib/mongoid/errors/too_many_nested_attribute_records.rb