Sha256: be146b7d4650e0d7c038db9d01b9b5c800c91c30e5f19ce398904690237501f9
Contents?: true
Size: 535 Bytes
Versions: 188
Compression:
Stored size: 535 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc module Errors #:nodoc # Raised when the database connection has not been set up properly, either # by attempting to set an object on the db that is not a +Mongo::DB+, or # not setting anything at all. # # @example Create the error. # InvalidDatabase.new("Not a DB") class InvalidDatabase < MongoidError def initialize(database) super( translate("invalid_database", { :name => database.class.name }) ) end end end end
Version data entries
188 entries across 96 versions & 4 rubygems