2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Banzai
|
|
|
|
module ReferenceParser
|
2020-01-01 13:55:28 +05:30
|
|
|
class MentionedProjectParser < ProjectParser
|
2019-12-21 20:55:43 +05:30
|
|
|
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
|