BigW Consortium Gitlab

Commit 0dc3a08c by Robert Speicher Committed by kushalpandya

Merge branch '33940-cache-flipper_gate-query' into 'master'

Add the Flipper::Middleware::Memoizer middleware Closes #33940 See merge request !12359
parent 53971eca
require 'flipper/middleware/memoizer'
Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
lambda { Feature.flipper }
......@@ -39,8 +39,6 @@ class Feature
get(key).disable
end
private
def flipper
@flipper ||= begin
adapter = Flipper::Adapters::ActiveRecord.new(
......
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