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