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

vulnerability.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71d0b1db4100c95b336d025584c8729d37d53f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

# Placeholder class for model that is implemented in EE
# It reserves '+' as a reference prefix, but the table does not exist in FOSS
class Vulnerability < ApplicationRecord
  include IgnorableColumns

  def self.reference_prefix
    '+'
  end

  def self.reference_prefix_escaped
    '&plus;'
  end
end

Vulnerability.prepend_if_ee('EE::Vulnerability')