Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-05 20:51:38 +0300
committerPhil Hughes <me@iamphill.com>2017-05-05 20:51:38 +0300
commitb81535351023a3b19870ce052d8c3d0563391686 (patch)
tree0332d42df3b6fb80e752b47121f6a0f4ddb0cf92 /app/models
parentc9b246334753c47bef1111bdbfc1a45a1c9b0cfe (diff)
parente5a7ed3ac36aaa1045353e589dae98a29ca72f1e (diff)
Merge branch 'add-sentry-js-again-with-vue' into 'master'
Add sentry JS See merge request !6764
Diffstat (limited to 'app/models')
-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 cf042717c95..54f01f8637e 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -62,6 +62,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