Sha256: dfccc2325ea6d307f76abaddcd36c811171f8988ac407b6620081f90d74f31da

Contents?: true

Size: 438 Bytes

Versions: 188

Compression:

Stored size: 438 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Errors #:nodoc

    # 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(
          translate("invalid_collection", { :klass => klass.name })
        )
      end
    end
  end
end

Version data entries

188 entries across 96 versions & 4 rubygems

Version Path
classiccms-0.5.1 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.5.0 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb
classiccms-0.5.0 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.5.0 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
mongoid-2.4.12 lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.2 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.2 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.2 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.1 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.1 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.1 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.0 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.0 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.4.0 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.9 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.9 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.9 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.8 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.8 vendor/bundle/gems/mongoid-2.4.7/lib/mongoid/errors/invalid_collection.rb
classiccms-0.3.8 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/errors/invalid_collection.rb