summaryrefslogtreecommitdiff
path: root/app/models/vulnerability.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/vulnerability.rb')
-rw-r--r--app/models/vulnerability.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/models/vulnerability.rb b/app/models/vulnerability.rb
index a4338c4e2bd..ab29afd0d08 100644
--- a/app/models/vulnerability.rb
+++ b/app/models/vulnerability.rb
@@ -2,6 +2,27 @@
# 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&lbrack;'
+ end
+
+ def self.reference_postfix
+ ']'
+ end
+
+ def self.reference_postfix_escaped
+ '&rbrack;'
+ end
end
Vulnerability.prepend_if_ee('EE::Vulnerability')