From a117635d856fd25bb05c4285fb77aabd3b382934 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 27 Jan 2022 18:10:48 +0100 Subject: [PATCH] Use top level Sentry constant We have a Alchemy::Sentry constant as well, but need the top level one. --- lib/alchemy/error_tracking/sentry_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alchemy/error_tracking/sentry_handler.rb b/lib/alchemy/error_tracking/sentry_handler.rb index d3ce5c0..62f0b22 100644 --- a/lib/alchemy/error_tracking/sentry_handler.rb +++ b/lib/alchemy/error_tracking/sentry_handler.rb @@ -8,7 +8,7 @@ class SentryHandler < BaseHandler def self.call(exception) return if ["development", "test"].include?(Rails.env) - Sentry.capture_exception(exception) + ::Sentry.capture_exception(exception) end end end