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

system_note_metadata.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b33e45473b719fcec2bb4cb8df61787bc67d600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class SystemNoteMetadata < ActiveRecord::Base
  ICON_TYPES = %w[
    commit description merge confidential visible label assignee cross_reference
    title time_tracking branch milestone discussion task moved
    opened closed merged duplicate
    outdated
  ].freeze

  validates :note, presence: true
  validates :action, inclusion: ICON_TYPES, allow_nil: true

  belongs_to :note
end