Sha256: f08329678c78886b0ef6e6784bdbf6c087518521213e1ad5c9568a6a5d2acbe7

Contents?: true

Size: 559 Bytes

Versions: 8

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

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

8 entries across 8 versions & 1 rubygems

Version Path
mongoid-7.5.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.5.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.5.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.5.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.4.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.5.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.4.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-7.4.0 lib/mongoid/errors/too_many_nested_attribute_records.rb