Exception: Mongoid::Errors::NoSessionsConfig

Inherits:
MongoidError
  • Object
show all
Defined in:
lib/mongoid/errors/no_sessions_config.rb

Overview

This error is raised when no sessions exists in the database configuration.

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initializeNoSessionsConfig

Create the new error.

Examples:

Create the error.

NoSessionsConfig.new

Since:

  • 3.0.0



15
16
17
# File 'lib/mongoid/errors/no_sessions_config.rb', line 15

def initialize
  super(compose_message("no_sessions_config", {}))
end