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
classiccms-0.7.5 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.5 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.5 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.4 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.4 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.4 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.3 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.3 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.3 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.8.1 lib/mongoid/errors/too_many_nested_attribute_records.rb
mongoid-2.8.0 lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.2 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.2 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.2 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.1 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.1 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.1 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.0 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.0 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/too_many_nested_attribute_records.rb
classiccms-0.7.0 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/too_many_nested_attribute_records.rb