19 lines
354 B
Ruby
19 lines
354 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module ReferenceParser
|
|
class MentionedUsersByProjectParser < 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
|