Class: Banzai::ReferenceParser::MentionedProjectParser

Inherits:
ProjectParser show all
Defined in:
lib/banzai/reference_parser/mentioned_project_parser.rb

Constant Summary collapse

PROJECT_ATTR =
'data-project'

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from BaseParser

#can?, #collection_cache_key, #collection_objects_for_ids, #find_projects_for_hash_keys, #gather_attributes_per_project, #gather_references, #grouped_objects_for_nodes, #initialize, #nodes_user_can_reference, #nodes_visible_to_user, #process, #project_for_node, #projects_for_nodes, #referenced_by, #unique_attribute_values

Constructor Details

This class inherits a constructor from Banzai::ReferenceParser::BaseParser

Class Method Details

.data_attributeObject


10
11
12
# File 'lib/banzai/reference_parser/mentioned_project_parser.rb', line 10

def self.data_attribute
  @data_attribute ||= PROJECT_ATTR
end

Instance Method Details

#references_relationObject


14
15
16
# File 'lib/banzai/reference_parser/mentioned_project_parser.rb', line 14

def references_relation
  Project
end