a7d65aeaf2
This is a follow-up for !12362 where this was documented but the code was removed in the last iteration. Since this can still be useful and this is already supported by the API, I think re-adding the code was the best course of action. Signed-off-by: Rémy Coutable <remy@rymai.me>
8 lines
205 B
Ruby
8 lines
205 B
Ruby
require 'flipper/middleware/memoizer'
|
|
|
|
unless Rails.env.test?
|
|
Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
|
|
lambda { Feature.flipper }
|
|
|
|
Feature.register_feature_groups
|
|
end
|