Class Dotenv::Railtie
In: lib/dotenv/rails.rb
Parent: Rails::Railtie

Dotenv Railtie for using Dotenv to load environment from a file into Rails applications

Methods

load   load   root  

Public Class methods

Rails uses `method_missing` to delegate all class methods to the instance, which means `Kernel#load` gets called here. We don‘t want that.

Public Instance methods

Public: Load dotenv

This will get called during the `before_configuration` callback, but you can manually call `Dotenv::Railtie.load` if you needed it sooner.

Internal: `Rails.root` is nil in Rails 4.1 before the application is initialized, so this falls back to the `RAILS_ROOT` environment variable, or the current working directory.

[Validate]