Commit ef1028e0 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Refactor Feature.flipper method

parent 01b6b8336181
......@@ -72,7 +72,11 @@ def disable_group(key, group)
end
def flipper
@flipper ||= (Gitlab::SafeRequestStore[:flipper] ||= build_flipper_instance)
if Gitlab::SafeRequestStore.active?
Gitlab::SafeRequestStore[:flipper] ||= build_flipper_instance
else
@flipper ||= build_flipper_instance
end
end
def build_flipper_instance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment