Airbrake.configure do |config|
  config.api_key = ENV['AIRBRAKE_API_KEY'] || fail("Missing AIRBRAKE_API_KEY")
end

if Rails.env.production?
  Airbrake.configure do |config|
    config.api_key = ENV['AIRBRAKE_API_KEY'] || fail("Missing AIRBRAKE_API_KEY")
  end
end

Enable Airbrake only in production
Enable Airbrake only in production