summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-28 13:23:34 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-28 13:41:29 +0100
commit284d4f76fee9f593cb67f3f2978ad4f49ef03c13 (patch)
tree405f5d50f0536dd85c1694434adc453a301cc196 /app/models/application_setting.rb
parentca6cc6014eed02b2e74bc8ffe65d3c1cc2e511b4 (diff)
downloadgitlab-ce-284d4f76fee9f593cb67f3f2978ad4f49ef03c13.tar.gz
Attempted adding separate clientside_sentry settings
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r--app/models/application_setting.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index dd1a6922968..4a1e7d6e59e 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -60,6 +60,10 @@ class ApplicationSetting < ActiveRecord::Base
presence: true,
if: :sentry_enabled
+ validates :clientside_sentry_dsn,
+ presence: true,
+ if: :clientside_sentry_enabled
+
validates :akismet_api_key,
presence: true,
if: :akismet_enabled