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

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

module Gitlab
  module BackgroundMigration
    module UserMentions
      module Lib
        module Banzai
          module ReferenceParser
            # isolated Banzai::ReferenceParser::MentionedGroupParser
            class IsolatedMentionedProjectParser < ::Banzai::ReferenceParser::MentionedProjectParser
              extend ::Gitlab::Utils::Override

              self.reference_type = :user

              override :references_relation
              def references_relation
                ::Gitlab::BackgroundMigration::UserMentions::Models::Project
              end
            end
          end
        end
      end
    end
  end
end