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

project_snippet.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ffb08e10f1f353a84de868d483af2ed1a37a8384 (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class ProjectSnippet < Snippet
  belongs_to :project

  validates :project, presence: true
  validates :secret, inclusion: { in: [false] }
end