From faae2f55d8a6f3a4e782976369d9bcb7efea937b Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 13 May 2022 14:32:44 +0200 Subject: [PATCH] Flipper: remove deprecated conf https://github.com/jnunemaker/flipper/pull/523 --- config/application.rb | 2 -- config/initializers/flipper.rb | 6 ------ 2 files changed, 8 deletions(-) diff --git a/config/application.rb b/config/application.rb index 5fce62b9e..aaf6aa527 100644 --- a/config/application.rb +++ b/config/application.rb @@ -64,8 +64,6 @@ module TPS end config.middleware.use Rack::Attack - # Ensure we make maximum one call per feature per request. - config.middleware.use Flipper::Middleware::Memoizer config.ds_env = ENV.fetch('DS_ENV', Rails.env) diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 624931613..4ae8ace9b 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -1,9 +1,3 @@ -Flipper.configure do |config| - config.default do - Flipper.new(Flipper::Adapters::ActiveRecord.new) - end -end - Flipper.register('Administrateurs') do |user| user.administrateur_id.present? end