debian-mirror-gitlab/lib/banzai/reference_parser/work_item_parser.rb
2023-07-09 08:55:56 +05:30

17 lines
384 B
Ruby

# frozen_string_literal: true
module Banzai
module ReferenceParser
class WorkItemParser < IssueParser
self.reference_type = :work_item
def records_for_nodes(nodes)
@work_items_for_nodes ||= grouped_objects_for_nodes(
nodes,
WorkItem.all.includes(node_includes),
self.class.data_attribute
)
end
end
end
end