Sha256: a850263acd093ba641b3f3054dfffc1da68820a6970bd8c9e893654e65f7463b

Contents?: true

Size: 485 Bytes

Versions: 92

Compression:

Stored size: 485 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # Used when attempting to get embedded paths with incorrect root path set.
    class InvalidPath < MongoidError

      # Create the new error.
      #
      # @example Create the error.
      #   InvalidPath.new(Address)
      #
      # @param [ Class ] klass The document class.
      #
      # @since 3.0.14
      def initialize(klass)
        super(compose_message("invalid_path", { klass: klass }))
      end
    end
  end
end

Version data entries

92 entries across 87 versions & 7 rubygems

Version Path
mongoid-3.1.1 lib/mongoid/errors/invalid_path.rb
mongoid-3.1.0 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.22 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.21 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.20 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.19 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.18 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.17 lib/mongoid/errors/invalid_path.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/errors/invalid_path.rb
mongoid-3.0.16 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.15 lib/mongoid/errors/invalid_path.rb
mongoid-3.0.14 lib/mongoid/errors/invalid_path.rb