From a316600e7aab6647a76990da7e3420835f8c5868 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 31 Jul 2024 15:58:20 +0200 Subject: [PATCH] chore(flipper): update config for flipper 1.3 --- config/initializers/flipper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index a027582b2..1ad209aa1 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -52,12 +52,13 @@ Flipper.configure do |config| Flipper::Adapters::ActiveSupportCacheStore.new( Flipper::Adapters::ActiveRecord.new, ActiveSupport::Cache::MemoryStore.new, - expires_in: 10.seconds + 10.seconds ) end end Rails.application.configure do + config.flipper.actor_limit = 500 # default is 100 but hide_instructeur_email feature has ~478 # don't preload features for /assets/* but do for everything else config.flipper.preload = -> (request) { !request.path.start_with?('/assets/', '/ping') } config.flipper.strict = Rails.env.development?