summaryrefslogtreecommitdiff
path: root/app/models/project_snippet.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 06:06:07 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 06:06:07 +0000
commit3209c1a49c14cab93eb347bfca59bace30879440 (patch)
treec9f931b477fefc1e5056380eb3370c689c2fa732 /app/models/project_snippet.rb
parent7f3bff1556594dcdc1beca40d083ba7263965e21 (diff)
downloadgitlab-ce-3209c1a49c14cab93eb347bfca59bace30879440.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/project_snippet.rb')
-rw-r--r--app/models/project_snippet.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_snippet.rb b/app/models/project_snippet.rb
index e732c1bd86f..ffb08e10f1f 100644
--- a/app/models/project_snippet.rb
+++ b/app/models/project_snippet.rb
@@ -4,4 +4,5 @@ class ProjectSnippet < Snippet
belongs_to :project
validates :project, presence: true
+ validates :secret, inclusion: { in: [false] }
end