49 lines
1.2 KiB
Ruby
49 lines
1.2 KiB
Ruby
Flipflop.configure do
|
|
strategy :cookie,
|
|
secure: Rails.env.production?,
|
|
httponly: true
|
|
strategy :active_record
|
|
strategy :user_preference
|
|
strategy :default
|
|
|
|
group :champs do
|
|
feature :champ_integer_number,
|
|
title: "Champ nombre entier"
|
|
feature :champ_repetition,
|
|
title: "Bloc répétable"
|
|
end
|
|
|
|
feature :web_hook
|
|
feature :enable_email_login_token
|
|
|
|
feature :procedure_export_v2_enabled
|
|
feature :operation_log_serialize_subject
|
|
feature :download_as_zip_enabled,
|
|
default: false
|
|
|
|
group :development do
|
|
feature :mini_profiler_enabled,
|
|
default: Rails.env.development?
|
|
feature :xray_enabled,
|
|
default: Rails.env.development?
|
|
end
|
|
|
|
group :production do
|
|
feature :remote_storage,
|
|
default: ENV['FOG_ENABLED'] == 'enabled'
|
|
feature :insee_api_v3,
|
|
default: true
|
|
feature :weekly_overview,
|
|
default: ENV['APP_NAME'] == 'tps'
|
|
feature :pre_maintenance_mode
|
|
feature :maintenance_mode
|
|
end
|
|
|
|
if Rails.env.test?
|
|
# It would be nicer to configure this in administrateur_spec.rb in #feature_enabled?,
|
|
# but that results in a FrozenError: can't modify frozen Hash
|
|
|
|
feature :test_a
|
|
feature :test_b
|
|
end
|
|
end
|