Module: FeatureGate

Extended by:
ActiveSupport::Concern
Included in:
Ci::Runner, Namespace, Organizations::Organization, Project, User
Defined in:
app/models/concerns/feature_gate.rb

Instance Method Summary collapse

Instance Method Details

#flipper_idObject



12
13
14
15
16
17
18
# File 'app/models/concerns/feature_gate.rb', line 12

def flipper_id
  return if new_record?

  # rubocop:disable Gitlab/ModuleWithInstanceVariables -- Memoization is an acceptable use of instance variable assignment
  @flipper_id ||= self.class.actor_from_id(id).flipper_id
  # rubocop:enable Gitlab/ModuleWithInstanceVariables
end