Commit 8aafd564 authored by Jonne Haß's avatar Jonne Haß

finally found a way to disable airbrake [ci skip]

parent d301d453
......@@ -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]
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
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment