summaryrefslogtreecommitdiff
path: root/app/helpers/sentry_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/sentry_helper.rb')
-rw-r--r--app/helpers/sentry_helper.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/helpers/sentry_helper.rb b/app/helpers/sentry_helper.rb
index 4b07f71bcea..8e80f83ae61 100644
--- a/app/helpers/sentry_helper.rb
+++ b/app/helpers/sentry_helper.rb
@@ -7,13 +7,9 @@ module SentryHelper
Gitlab::Sentry.context(current_user)
end
- def sentry_dsn_public
- sentry_dsn = ApplicationSetting.current.sentry_dsn
-
- return unless sentry_dsn
-
- uri = URI.parse(sentry_dsn)
- uri.password = nil
- uri.to_s
+ def clientside_sentry_enabled?
+ current_application_settings.clientside_sentry_enabled
end
+
+ delegate :clientside_sentry_dsn, to: :current_application_settings
end