debian-mirror-gitlab/app/models/vulnerability.rb

29 lines
489 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
# Placeholder class for model that is implemented in EE
class Vulnerability < ApplicationRecord
2021-01-29 00:20:46 +05:30
include IgnorableColumns
def self.link_reference_pattern
nil
end
def self.reference_prefix
'[vulnerability:'
end
def self.reference_prefix_escaped
'[vulnerability&lbrack;'
end
def self.reference_postfix
']'
end
def self.reference_postfix_escaped
'&rbrack;'
end
2020-11-24 15:15:51 +05:30
end
Vulnerability.prepend_if_ee('EE::Vulnerability')