diff --git a/lib/alchemy/engine.rb b/lib/alchemy/engine.rb index ddd6ead3f0..7801a1c607 100644 --- a/lib/alchemy/engine.rb +++ b/lib/alchemy/engine.rb @@ -44,12 +44,5 @@ class Engine < Rails::Engine end end end - - initializer "alchemy.error_tracking" do - if defined?(Airbrake) - require_relative "error_tracking/airbrake_handler" - Alchemy::ErrorTracking.notification_handler = Alchemy::ErrorTracking::AirbrakeHandler - end - end end end diff --git a/lib/alchemy/error_tracking/airbrake_handler.rb b/lib/alchemy/error_tracking/airbrake_handler.rb deleted file mode 100644 index 61fa4e0a33..0000000000 --- a/lib/alchemy/error_tracking/airbrake_handler.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Alchemy - module ErrorTracking - class AirbrakeHandler < BaseHandler - def self.call(exception) - return if ["development", "test"].include?(Rails.env) - - notify_airbrake(exception) - end - end - end -end