gitlab-org--gitlab-foss/lib/banzai/reference_parser/mentioned_project_parser.rb

20 lines
347 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module ReferenceParser
class MentionedProjectParser < ProjectParser
PROJECT_ATTR = 'data-project'
self.reference_type = :user
def self.data_attribute
@data_attribute ||= PROJECT_ATTR
end
def references_relation
Project
end
end
end
end