28 lines
489 B
Ruby
28 lines
489 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Placeholder class for model that is implemented in EE
|
|
class Vulnerability < ApplicationRecord
|
|
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
|
|
end
|
|
|
|
Vulnerability.prepend_if_ee('EE::Vulnerability')
|