Class: Banzai::ReferenceParser::MentionedUserParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Banzai::ReferenceParser::MentionedUserParser
- Defined in:
- lib/banzai/reference_parser/mentioned_user_parser.rb
Instance Method Summary collapse
-
#can_read_reference?(user, ref_attr, node) ⇒ Boolean
any user can be mentioned by username.
- #references_relation ⇒ Object
Methods inherited from BaseParser
#can?, #collection_cache_key, #collection_objects_for_ids, data_attribute, #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
Instance Method Details
#can_read_reference?(user, ref_attr, node) ⇒ Boolean
any user can be mentioned by username
13 14 15 |
# File 'lib/banzai/reference_parser/mentioned_user_parser.rb', line 13 def can_read_reference?(user, ref_attr, node) true end |
#references_relation ⇒ Object
8 9 10 |
# File 'lib/banzai/reference_parser/mentioned_user_parser.rb', line 8 def references_relation User end |