class Dotenv::Rails

def root

or the current working directory.
initialized, so this falls back to the `RAILS_ROOT` environment variable,
Internal: `Rails.root` is nil in Rails 4.1 before the application is
def root
  ::Rails.root || Pathname.new(ENV["RAILS_ROOT"] || Dir.pwd)
end