Flipper: remove deprecated conf
https://github.com/jnunemaker/flipper/pull/523
This commit is contained in:
parent
05ebeefb7d
commit
faae2f55d8
2 changed files with 0 additions and 8 deletions
|
@ -64,8 +64,6 @@ module TPS
|
||||||
end
|
end
|
||||||
|
|
||||||
config.middleware.use Rack::Attack
|
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)
|
config.ds_env = ENV.fetch('DS_ENV', Rails.env)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
Flipper.configure do |config|
|
|
||||||
config.default do
|
|
||||||
Flipper.new(Flipper::Adapters::ActiveRecord.new)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Flipper.register('Administrateurs') do |user|
|
Flipper.register('Administrateurs') do |user|
|
||||||
user.administrateur_id.present?
|
user.administrateur_id.present?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue