Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When configloader is used in a Rails App, it's better to rely on Rail…
…s.env instead of ENV['RAILS_ENV'] or ENV['RACK_ENV']. Also, it's betther to rely on Rails.root, instead of ENV['RAILS_ROOT'] or ENV['RACK_ROOT']. So I changed the loader in order to firstly use Rails.env and Rails.root, but fallback to the environment variables if necessary.
- Loading branch information