Exception: Mongoid::Errors::NoEnvironment

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

Overview

Raised when trying to load configuration with no RACK_ENV set

Constant Summary

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initializeNoEnvironment

Create the new no environment error.

Examples:

Create the new no environment error.

NoEnvironment.new

Since:

  • 2.4.0



14
15
16
# File 'lib/mongoid/errors/no_environment.rb', line 14

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