mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 19:45:08 +00:00
45 lines
1.8 KiB
Ruby
45 lines
1.8 KiB
Ruby
Rails.application.configure do
|
|
## Memoization ensures that only one adapter call is made per feature per request.
|
|
## For more info, see https://www.flippercloud.io/docs/optimization#memoization
|
|
# config.flipper.memoize = true
|
|
|
|
## Flipper preloads all features before each request, which is recommended if:
|
|
## * you have a limited number of features (< 100?)
|
|
## * most of your requests depend on most of your features
|
|
## * you have limited gate data combined across all features (< 1k enabled gates, like individual actors, across all features)
|
|
##
|
|
## For more info, see https://www.flippercloud.io/docs/optimization#preloading
|
|
# config.flipper.preload = true
|
|
|
|
## Warn or raise an error if an unknown feature is checked
|
|
## Can be set to `:warn`, `:raise`, or `false`
|
|
# config.flipper.strict = Rails.env.development? && :warn
|
|
|
|
## Show Flipper checks in logs
|
|
# config.flipper.log = true
|
|
|
|
## Reconfigure Flipper to use the Memory adapter and disable Cloud in tests
|
|
# config.flipper.test_help = true
|
|
|
|
## The path that Flipper Cloud will use to sync features
|
|
# config.flipper.cloud_path = "_flipper"
|
|
|
|
## The instrumenter that Flipper will use. Defaults to ActiveSupport::Notifications.
|
|
# config.flipper.instrumenter = ActiveSupport::Notifications
|
|
end
|
|
|
|
Flipper.configure do |config|
|
|
## Configure other adapters that you want to use here:
|
|
## See http://flippercloud.io/docs/adapters
|
|
# config.use Flipper::Adapters::ActiveSupportCacheStore, Rails.cache, expires_in: 5.minutes
|
|
end
|
|
|
|
## Register a group that can be used for enabling features.
|
|
##
|
|
## Flipper.enable_group :my_feature, :admins
|
|
##
|
|
## See https://www.flippercloud.io/docs/features#enablement-group
|
|
#
|
|
# Flipper.register(:admins) do |actor|
|
|
# actor.respond_to?(:admin?) && actor.admin?
|
|
# end
|