summaryrefslogtreecommitdiff
path: root/lib/feature.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-21 16:35:14 +0200
committerRémy Coutable <remy@rymai.me>2017-06-21 17:35:29 +0200
commitb8a7b59d82c49c14f4f9a452f99fa7df289c444d (patch)
tree9284356ed6dfcff2f58692e7f0f31e3002d578fc /lib/feature.rb
parent0551364c60ff5f27ae10f5d0231bec8144332f5b (diff)
downloadgitlab-ce-b8a7b59d82c49c14f4f9a452f99fa7df289c444d.tar.gz
Add the Flipper::Middleware::Memoizer middleware
This ensures we make maximum one call per feature per request. See https://github.com/jnunemaker/flipper/blob/v0.10.2/docs/Optimization.md#memoizing-middleware Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 5650a1c1334..e2fd8774c6a 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -39,7 +39,6 @@ class Feature
get(key).disable
end
- private
def flipper
@flipper ||= begin