Sha256: 8929e04e328af7a96f917e494cec44a4069053c952579cf6c3d0571e2ea99bc1
Contents?: true
Size: 522 Bytes
Versions: 28
Compression:
Stored size: 522 Bytes
Contents
# encoding: utf-8 module Mongoid module Errors # 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( compose_message("invalid_database", { name: database.class.name }) ) end end end end
Version data entries
28 entries across 28 versions & 2 rubygems