diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb deleted file mode 100644 index e9d003078..000000000 --- a/config/initializers/airbrake.rb +++ /dev/null @@ -1,3 +0,0 @@ -if Rails.env.production? && File.exists?(Rails.root + '/config/airbrake.rb') - require 'airbrake' -end diff --git a/config/airbrake.rb.sample b/config/initializers/airbrake.rb.sample similarity index 95% rename from config/airbrake.rb.sample rename to config/initializers/airbrake.rb.sample index c440d01d7..46bb4b9c2 100644 --- a/config/airbrake.rb.sample +++ b/config/initializers/airbrake.rb.sample @@ -1,6 +1,6 @@ # Internally Dicourse uses Errbit for error logging, # you can to by setting up an instance and amending this file - +require 'airbrake' Airbrake.configure do |config| config.api_key = 'YOUR API KEY' config.host = 'errors.example.com'