summaryrefslogtreecommitdiff
path: root/lib/gitlab/gon_helper.rb
diff options
context:
space:
mode:
authorArinde Eniola <eniolaarinde1@gmail.com>2016-04-19 22:04:52 +0100
committerArinde Eniola <eniolaarinde1@gmail.com>2016-04-19 22:04:52 +0100
commit3e7a8b0789745080e499f68862ff29e3bc178453 (patch)
treedcbdc3b6dda20836c347751bcfb93c39114f9aad /lib/gitlab/gon_helper.rb
parent5661f47d3834edb81dbddf4c272bcd49f2195a14 (diff)
downloadgitlab-ce-3e7a8b0789745080e499f68862ff29e3bc178453.tar.gz
place the sentry config into a new file, and some changessentry-js
Diffstat (limited to 'lib/gitlab/gon_helper.rb')
-rw-r--r--lib/gitlab/gon_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb
index 4bdaedbf9b6..eb27d82f110 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -7,7 +7,7 @@ module Gitlab
gon.max_file_size = current_application_settings.max_attachment_size
gon.relative_url_root = Gitlab.config.gitlab.relative_url_root
gon.user_color_scheme = Gitlab::ColorSchemes.for_user(current_user).css_class
- gon.sentry_dsn = ApplicationSetting.current.sentry_dsn
+ gon.sentry_dsn = ApplicationSetting.current.sentry_dsn if Rails.env.production?
if current_user
gon.current_user_id = current_user.id