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

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

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


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

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