Exception: Mongoid::Errors::NoEnvironment

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

Overview

Raised when trying to load configuration with no RACK_ENV set

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Method Summary collapse

Methods inherited from MongoidError

#translate

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(translate("no_environment", {}))
end