Parent

Methods

Class/Module Index [+]

Quicksearch

Mongoid::Errors::NoSessionDatabase

This error is raised when a session is configured without a database.

Public Class Methods

new(name, config) click to toggle source

Create the new error.

@example Create the new error.

NoSessionDatabase.new(:default, {}})

@param [ Symbol, String ] name The db config key. @param [ Hash ] config The hash configuration options.

@since 3.0.0

# File lib/mongoid/errors/no_session_database.rb, line 16
def initialize(name, config)
  super(
    compose_message(
      "no_session_database",
      { name: name, config: config }
    )
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.