Class: Banzai::ReferenceParser::MentionedUserParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/banzai/reference_parser/mentioned_user_parser.rb

Instance Method Summary collapse

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, #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

Returns:

  • (Boolean)

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_relationObject


8
9
10
# File 'lib/banzai/reference_parser/mentioned_user_parser.rb', line 8

def references_relation
  User
end