Class: Feature::FlipperRequest
- Inherits:
-
Object
- Object
- Feature::FlipperRequest
- Defined in:
- lib/feature.rb
Overview
Generates the same flipper_id when in a request If not in a request, it generates a unique flipper_id every time
Instance Method Summary collapse
Instance Method Details
#flipper_id ⇒ Object
49 50 51 52 53 |
# File 'lib/feature.rb', line 49 def flipper_id Gitlab::SafeRequestStore.fetch("flipper_request_id") do "FlipperRequest:#{SecureRandom.uuid}".freeze end end |