commit
80f0497a37
3 changed files with 16 additions and 20 deletions
28
Gemfile.lock
28
Gemfile.lock
|
@ -182,8 +182,8 @@ GEM
|
|||
activerecord (>= 3.1.0, < 7)
|
||||
delayed_cron_job (0.7.4)
|
||||
delayed_job (>= 4.1)
|
||||
delayed_job (4.1.9)
|
||||
activesupport (>= 3.0, < 6.2)
|
||||
delayed_job (4.1.10)
|
||||
activesupport (>= 3.0, < 8.0)
|
||||
delayed_job_active_record (4.1.5)
|
||||
activerecord (>= 3.0, < 6.2)
|
||||
delayed_job (>= 3.0, < 5)
|
||||
|
@ -252,15 +252,16 @@ GEM
|
|||
faraday-patron (1.0.0)
|
||||
faraday-rack (1.0.0)
|
||||
ffi (1.15.5)
|
||||
flipper (0.20.3)
|
||||
flipper-active_record (0.20.3)
|
||||
activerecord (>= 5.0, < 7)
|
||||
flipper (~> 0.20.3)
|
||||
flipper-ui (0.20.3)
|
||||
flipper (0.24.1)
|
||||
flipper-active_record (0.24.1)
|
||||
activerecord (>= 4.2, < 8)
|
||||
flipper (~> 0.24.1)
|
||||
flipper-ui (0.24.1)
|
||||
erubi (>= 1.0.0, < 2.0.0)
|
||||
flipper (~> 0.20.3)
|
||||
flipper (~> 0.24.1)
|
||||
rack (>= 1.4, < 3)
|
||||
rack-protection (>= 1.5.3, < 2.2.0)
|
||||
rack-protection (>= 1.5.3, <= 2.2.0)
|
||||
sanitize (< 7)
|
||||
fog-core (2.2.3)
|
||||
builder
|
||||
excon (~> 0.71)
|
||||
|
@ -513,7 +514,7 @@ GEM
|
|||
httpclient
|
||||
json-jwt (>= 1.11.0)
|
||||
rack (>= 2.1.0)
|
||||
rack-protection (2.1.0)
|
||||
rack-protection (2.2.0)
|
||||
rack
|
||||
rack-proxy (0.7.0)
|
||||
rack
|
||||
|
@ -638,6 +639,9 @@ GEM
|
|||
ruby_parser (3.15.1)
|
||||
sexp_processor (~> 4.9)
|
||||
rubyzip (2.3.0)
|
||||
sanitize (6.0.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
sanitize-url (0.1.4)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
|
@ -681,10 +685,10 @@ GEM
|
|||
simple_xlsx_reader (1.0.4)
|
||||
nokogiri
|
||||
rubyzip
|
||||
sinatra (2.1.0)
|
||||
sinatra (2.2.0)
|
||||
mustermann (~> 1.0)
|
||||
rack (~> 2.2)
|
||||
rack-protection (= 2.1.0)
|
||||
rack-protection (= 2.2.0)
|
||||
tilt (~> 2.0)
|
||||
skylight (5.0.1)
|
||||
activesupport (>= 5.2.0)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue