finally found a way to disable airbrake [ci skip]

This commit is contained in:
Jonne Haß 2012-01-25 00:28:28 +01:00
parent d301d453a1
commit 8aafd56482

View file

@ -2,10 +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|
puts 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