Sha256: 90bbc66f763079a0eda7de8bcaeac9e7b71825e2a952a6a826931e0daaf2b56d

Contents?: true

Size: 433 Bytes

Versions: 18

Compression:

Stored size: 433 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:
    #
    # <tt>InvalidCollection.new(Address)</tt>
    class InvalidCollection < MongoidError
      def initialize(klass)
        super(
          translate("invalid_collection", { :klass => klass.name })
        )
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
mongoid-braxton-2.0.2 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.2 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.1 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.8 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.7 lib/mongoid/errors/invalid_collection.rb
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.6 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.5 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.4 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.3 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.2 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.rc.1 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.beta.20 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.beta.19 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.beta.18 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.beta.17 lib/mongoid/errors/invalid_collection.rb
mongoid-2.0.0.beta.16 lib/mongoid/errors/invalid_collection.rb