trying this on for size again; Revert "I can't test this at this momement. I will put it back in once i have a"

This reverts commit 53304df740.

Conflicts:

	config/initializers/airbrake.rb
This commit is contained in:
Maxwell Salzberg 2012-04-19 21:02:29 -07:00
parent cdef049529
commit 63616c5ced

View file

@ -2,9 +2,11 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
if AppConfig[:airbrake_api_key].present?
require 'airbrake'
Airbrake.configure do |config|
config.api_key = AppConfig[:airbrake_api_key]
Airbrake.configure do |config|
if AppConfig[:airbrake_api_key].present?
config.api_key = AppConfig[:airbrake_api_key]
else
# creative way to disable Airbrake, should be replaced once the gem provides a proper way
config.development_environments << Rails.env
end
end
end