module Mongoid

def client(name)

Other tags:
    Since: - 3.0.0

Returns:
  • (Mongo::Client) - The named client.

Other tags:
    Example: Get a named client. -
def client(name)
  Clients.with_name(name)
end

def configure

Other tags:
    Since: - 1.0.0

Returns:
  • (Config) - The configuration object.

Other tags:
    Example: Set up configuration options. -
def configure
  block_given? ? yield(Config) : Config
end

def default_client

Other tags:
    Since: - 3.0.0

Returns:
  • (Mongo::Client) - The default client.

Other tags:
    Example: Get the default client. -
def default_client
  Clients.default
end

def disconnect_clients

Other tags:
    Since: - 3.1.0

Returns:
  • (true) - True.

Other tags:
    Example: Disconnect all active clients. -
def disconnect_clients
  Clients.disconnect
end