Commit 6e66473f authored by Robert Speicher's avatar Robert Speicher

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

Add the Flipper::Middleware::Memoizer middleware

Closes #33940

See merge request !12359
parents bf0b3d83 6661b0b8
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