Class: Banzai::ReferenceParser::MentionedProjectParser
- Inherits:
-
ProjectParser
- Object
- BaseParser
- ProjectParser
- Banzai::ReferenceParser::MentionedProjectParser
- 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 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, reference_class, #referenced_by, #unique_attribute_values
Constructor Details
This class inherits a constructor from Banzai::ReferenceParser::BaseParser
Class Method Details
.data_attribute ⇒ Object
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_relation ⇒ Object
14 15 16 |
# File 'lib/banzai/reference_parser/mentioned_project_parser.rb', line 14 def references_relation Project end |