summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-22 19:42:35 +0000
committerRobert Speicher <robert@gitlab.com>2017-06-22 19:42:35 +0000
commit6e66473fa65e5f806f24cb4ef5929f29463c41a6 (patch)
tree51025c8de69b5826ef25e1ef1df34f1aabfc1231 /config
parentbf0b3d835211077cb10ee3aec9ee6e0bca2304b6 (diff)
parent6661b0b8e0232e9ad8df783a7bee90deb5b78e54 (diff)
downloadgitlab-ce-6e66473fa65e5f806f24cb4ef5929f29463c41a6.tar.gz
Merge branch '33940-cache-flipper_gate-query' into 'master'
Add the Flipper::Middleware::Memoizer middleware Closes #33940 See merge request !12359
Diffstat (limited to 'config')
-rw-r--r--config/initializers/flipper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb
new file mode 100644
index 00000000000..0fee832788d
--- /dev/null
+++ b/config/initializers/flipper.rb
@@ -0,0 +1,4 @@
+require 'flipper/middleware/memoizer'
+
+Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
+ lambda { Feature.flipper }