Skip to content

Commit

Permalink
Extract Airbrake error handler into extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Dec 27, 2021
1 parent 7a28b9e commit ad1211e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
7 changes: 0 additions & 7 deletions lib/alchemy/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 0 additions & 13 deletions lib/alchemy/error_tracking/airbrake_handler.rb

This file was deleted.

0 comments on commit ad1211e

Please sign in to comment.