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

isolated_feature_gate.rb « concerns « models « 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: ba6b783f9f1020fa33d16d03ffdf1e686404fa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Gitlab
  module BackgroundMigration
    module UserMentions
      module Models
        module Concerns
          # isolated FeatureGate module
          module IsolatedFeatureGate
            def flipper_id
              return if new_record?

              "#{self.class.name}:#{id}"
            end
          end
        end
      end
    end
  end
end