debian-mirror-gitlab/app/models/vulnerability.rb
2023-06-20 00:43:36 +05:30

25 lines
448 B
Ruby

# frozen_string_literal: true
# Placeholder class for model that is implemented in EE
class Vulnerability < ApplicationRecord
include EachBatch
include IgnorableColumns
alias_attribute :vulnerability_id, :id
scope :with_projects, -> { includes(:project) }
def self.link_reference_pattern
nil
end
def self.reference_prefix
'[vulnerability:'
end
def self.reference_postfix
']'
end
end
Vulnerability.prepend_mod