coderanger/raven-ruby — pull request #11 by hmarr (2012-06-15 09:13:19+00:00)
Title: Detect RAILS_ENV and default to development environment

Even though RACK_ENV is generally preferred, RAILS_ENV still exists in some older apps.

As there was previously no default environment, the current_environment would be nil when RACK_ENV was missing, meaning that errors would be silently not sent. Adding development as the default environment resolves this.

Thanks!