Sha256: de7d6b77ba4bd6d69b350023d0c72bbf90c820e522132477fef633eb80ef8828

Contents?: true

Size: 561 Bytes

Versions: 16

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # This error is raised when trying to create set nested documents 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

16 entries across 16 versions & 1 rubygems

Version Path
mongoid-8.1.7 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.6 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.8 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.7 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.6 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.1.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-8.0.1 lib/mongoid/errors/too_many_nested_attribute_records.rb