Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

trying this on for size again; Revert "I can't test this at this mome…

…ment. I will put it back in once i have a"

This reverts commit 53304df.

Conflicts:

	config/initializers/airbrake.rb
  • Loading branch information...
commit 63616c5cedb442896989a00c9e20afc67a0b51d5 1 parent cdef049
@maxwell maxwell authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 config/initializers/airbrake.rb
View
12 config/initializers/airbrake.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.