Welcome to mirror list, hosted at ThFree Co, Russian Federation.

iteration_parser.rb « reference_parser « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45253fa197739420a89d2653887a4c33ab02e920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Banzai
  module ReferenceParser
    # The actual parser is implemented in the EE mixin
    class IterationParser < BaseParser
      self.reference_type = :iteration

      def references_relation
        Iteration
      end

      private

      def can_read_reference?(_user, _ref_project, _node)
        false
      end
    end
  end
end

Banzai::ReferenceParser::IterationParser.prepend_if_ee('::EE::Banzai::ReferenceParser::IterationParser')