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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/reference_parser/iteration_parser.rb')
-rw-r--r--lib/banzai/reference_parser/iteration_parser.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/banzai/reference_parser/iteration_parser.rb b/lib/banzai/reference_parser/iteration_parser.rb
new file mode 100644
index 00000000000..45253fa1977
--- /dev/null
+++ b/lib/banzai/reference_parser/iteration_parser.rb
@@ -0,0 +1,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')