Sha256: a93f2cefac5c878cd0a1e261c6d21bb7fc4b7e2f8f6f4e1ee670c97b18051070

Contents?: true

Size: 768 Bytes

Versions: 105

Compression:

Stored size: 768 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # This error is raised when metadata could not be found when defining
    # nested attributes, or the name was incorrect.
    class NestedAttributesMetadataNotFound < MongoidError

      # Create the new metadata error.
      #
      # @example Create the new metadata error.
      #   NestedAttributesMetadataNotFound.new(klass, name)
      #
      # @param [ Class ] klass The class of the document.
      # @param [ Symbol, String ] name The name of the relation
      #
      # @since 3.0.0
      def initialize(klass, name)
        super(
          compose_message(
            "nested_attributes_metadata_not_found",
            { klass: klass, name: name }
          )
        )
      end
    end
  end
end

Version data entries

105 entries across 100 versions & 7 rubygems

Version Path
mongoid-3.1.1 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.1.0 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.22 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.21 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.20 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.19 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.18 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.17 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.16 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.15 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.14 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.13 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.12 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.11 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.10 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.9 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.6 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.5 lib/mongoid/errors/nested_attributes_metadata_not_found.rb
mongoid-3.0.4 lib/mongoid/errors/nested_attributes_metadata_not_found.rb