2019-10-17 08:07:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Banzai
|
|
|
|
module ReferenceParser
|
2019-12-10 10:07:52 -05:00
|
|
|
class MentionedProjectParser < ProjectParser
|
2019-10-17 08:07:33 -04:00
|
|
|
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
|