errbit/errbit — Issue #163: Mongoid::Errors::Validations: Validation failed - Environment can't be blank.
Author: mheffner
Created: 2012-03-02 22:38:25+00:00
State: open

I only get this with my rack application using the following configuration (rails apps worked fine).

```ruby
Airbrake.configure do |config|
config.api_key = ENV['ERRBIT_API_KEY']
config.host	= ENV['ERRBIT_HOST']
config.port	= 443
config.secure = config.port == 443
end

use Airbrake::Rack
```

I found that I explicitly had to set the environment_name. Not sure if this is an error with Airbrake not setting this or errbit not handling this scenario.

```ruby
Airbrake.configure do |config|
....
config.environment_name = ENV['RACK_ENV']
```