diff options
Diffstat (limited to 'lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb')
-rw-r--r-- | lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb b/lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb new file mode 100644 index 00000000000..ba6b783f9f1 --- /dev/null +++ b/lib/gitlab/background_migration/user_mentions/models/concerns/isolated_feature_gate.rb @@ -0,0 +1,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 |