2020-09-16 14:09:47 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Placeholder class for model that is implemented in EE
|
|
|
|
class Vulnerability < ApplicationRecord
|
2020-11-17 16:09:19 -05:00
|
|
|
include IgnorableColumns
|
|
|
|
|
|
|
|
def self.link_reference_pattern
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reference_prefix
|
|
|
|
'[vulnerability:'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reference_prefix_escaped
|
|
|
|
'[vulnerability['
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reference_postfix
|
|
|
|
']'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reference_postfix_escaped
|
|
|
|
']'
|
|
|
|
end
|
2020-09-16 14:09:47 -04:00
|
|
|
end
|
|
|
|
|
2021-01-26 07:09:27 -05:00
|
|
|
Vulnerability.prepend_ee_mod
|