finally found a way to disable airbrake [ci skip]
This commit is contained in:
parent
d301d453a1
commit
8aafd56482
1 changed files with 7 additions and 6 deletions
|
|
@ -2,10 +2,11 @@
|
||||||
# licensed under the Affero General Public License version 3 or later. See
|
# licensed under the Affero General Public License version 3 or later. See
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
|
|
||||||
if AppConfig[:airbrake_api_key].present?
|
Airbrake.configure do |config|
|
||||||
require 'airbrake'
|
if AppConfig[:airbrake_api_key].present?
|
||||||
Airbrake.configure do |config|
|
config.api_key = AppConfig[:airbrake_api_key]
|
||||||
puts AppConfig[:airbrake_api_key]
|
else
|
||||||
config.api_key = AppConfig[:airbrake_api_key]
|
# creative way to disable Airbrake, should be replaced once the gem provides a proper way
|
||||||
|
config.development_environments << Rails.env
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue