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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-28 01:40:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-28 01:40:43 +0300
commitbbe511b231b5de3fab4dc418601c89cc1ccc8063 (patch)
tree650453c3b64751df39fda6f33ca4b39318f41e0d /app/models
parentad1c34c03de42ebc5279f338f6304e77930d34d4 (diff)
Add latest changes from gitlab-org/gitlab@14-1-stable-ee
Diffstat (limited to 'app/models')
-rw-r--r--app/models/application_setting/term.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/application_setting/term.rb b/app/models/application_setting/term.rb
index acdd7e4155c..8910f22c502 100644
--- a/app/models/application_setting/term.rb
+++ b/app/models/application_setting/term.rb
@@ -3,13 +3,12 @@
class ApplicationSetting
class Term < ApplicationRecord
include CacheMarkdownField
- include NullifyIfBlank
has_many :term_agreements
cache_markdown_field :terms
- nullify_if_blank :terms
+ validates :terms, presence: true
def self.latest
order(:id).last