diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-28 15:23:34 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-28 15:41:29 +0300 |
commit | 284d4f76fee9f593cb67f3f2978ad4f49ef03c13 (patch) | |
tree | 405f5d50f0536dd85c1694434adc453a301cc196 /app/models/application_setting.rb | |
parent | ca6cc6014eed02b2e74bc8ffe65d3c1cc2e511b4 (diff) |
Attempted adding separate clientside_sentry settings
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r-- | app/models/application_setting.rb | 4 |
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 |