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-6.0.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.0.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.0.0.rc0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-6.0.0.beta lib/mongoid/errors/too_many_nested_attribute_records.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-5.1.3/lib/mongoid/errors/too_many_nested_attribute_records.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.1.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/lib/mongoid/errors/too_many_nested_attribute_records.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/lib/mongoid/errors/too_many_nested_attribute_records.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.0.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.0.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.0.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.0.0.rc0 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-5.0.0.beta lib/mongoid/errors/too_many_nested_attribute_records.rb