Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the `Rails.env` instead of `Sinatra::Application.environment`. Sinatra depends on `APP_ENV` rather than `RAILS_ENV` and defaults to `development` if no `APP_ENV` is set. This can lead to situations where the host application is running in `production` but the dashboard is showing `development`. Fixes ejschmitt#112
- Loading branch information