Method: Dotenv::Railtie#root

Defined in:
lib/dotenv/rails.rb

#rootObject

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.



44
45
46
# File 'lib/dotenv/rails.rb', line 44

def root
  Rails.root || Pathname.new(ENV["RAILS_ROOT"] || Dir.pwd)
end