chore(flipper): update config for flipper 1.3
This commit is contained in:
parent
cb6e243643
commit
a316600e7a
1 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue