Sha256: 6ee5e562474f771bfb795e59e8ce2ab2dbd5a29c002dbb1d3b18d4a191ecc17a

Contents?: true

Size: 438 Bytes

Versions: 25

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # This error is raised when trying to access a Mongo::Collection from an
    # embedded document.
    #
    # @example Create the error.
    #   InvalidCollection.new(Address)
    class InvalidCollection < MongoidError
      def initialize(klass)
        super(
          compose_message("invalid_collection", { klass: klass.name })
        )
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mongoid-8.1.8 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.7 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.6 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.8 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.5 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.4 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.7 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.3 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.2 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.6 lib/mongoid/errors/invalid_collection.rb
mongoid-7.5.4 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.1 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.5 lib/mongoid/errors/invalid_collection.rb
mongoid-8.1.0 lib/mongoid/errors/invalid_collection.rb
mongoid-7.5.3 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.4 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.3 lib/mongoid/errors/invalid_collection.rb
mongoid-7.5.2 lib/mongoid/errors/invalid_collection.rb
mongoid-8.0.2 lib/mongoid/errors/invalid_collection.rb
mongoid-7.5.1 lib/mongoid/errors/invalid_collection.rb