summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb
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