Sha256: 5d4a55edee5af0764350c21afdbdb9ecf18ba9ffb15bc43c3d0ef196eca3d82f

Contents?: true

Size: 544 Bytes

Versions: 188

Compression:

Stored size: 544 Bytes

Contents

module Mongoid #:nodoc
  module Errors #:nodoc

    # 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(
          translate(
            "too_many_nested_attribute_records",
            { :association => association, :limit => limit }
          )
        )
      end
    end
  end
end

Version data entries

188 entries across 96 versions & 4 rubygems

Version Path
mongoid-2.1.7 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.6 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.5 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.4 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.3 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.2 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.1.0 lib/mongoid/errors/too_many_nested_attribute_records.rb