Method: Timber::Config#environment
- Defined in:
- lib/timber/config.rb
#environment ⇒ Object
The environment your app is running in. Defaults to ‘RACK_ENV` and `RAILS_ENV`. It should be rare that you have to set this. If the aforementioned env vars are not set please do.
79 80 81 |
# File 'lib/timber/config.rb', line 79 def environment @environment ||= ENV["RACK_ENV"] || ENV["RAILS_ENV"] || "development" end |