2018-04-18 12:16:25 +02:00
|
|
|
Flipflop.configure do
|
2018-04-25 15:09:24 +02:00
|
|
|
strategy :cookie,
|
|
|
|
secure: Rails.env.production?,
|
|
|
|
httponly: true
|
2018-04-18 12:16:25 +02:00
|
|
|
strategy :active_record
|
|
|
|
strategy :user_preference
|
|
|
|
strategy :default
|
|
|
|
|
|
|
|
group :champs do
|
2018-10-31 19:51:11 +01:00
|
|
|
feature :champ_integer_number,
|
|
|
|
title: "Champ nombre entier"
|
2018-04-18 12:16:25 +02:00
|
|
|
end
|
2018-04-25 15:09:24 +02:00
|
|
|
|
2018-04-18 12:16:25 +02:00
|
|
|
feature :web_hook
|
2018-04-25 15:09:24 +02:00
|
|
|
|
2019-05-02 16:22:16 +02:00
|
|
|
feature :operation_log_serialize_subject
|
2019-07-31 15:04:49 +02:00
|
|
|
feature :download_as_zip_enabled
|
|
|
|
feature :bypass_email_login_token,
|
|
|
|
default: Rails.env.test?
|
2019-05-02 16:22:16 +02:00
|
|
|
|
2019-05-15 15:57:57 +02:00
|
|
|
group :development do
|
|
|
|
feature :mini_profiler_enabled,
|
|
|
|
default: Rails.env.development?
|
|
|
|
feature :xray_enabled,
|
|
|
|
default: Rails.env.development?
|
|
|
|
end
|
|
|
|
|
2018-04-18 12:16:25 +02:00
|
|
|
group :production do
|
2019-04-30 17:27:58 +02:00
|
|
|
feature :insee_api_v3,
|
|
|
|
default: true
|
2018-11-13 16:34:56 +01:00
|
|
|
feature :pre_maintenance_mode
|
|
|
|
feature :maintenance_mode
|
2018-04-18 12:16:25 +02:00
|
|
|
end
|
2018-12-10 19:47:52 +01:00
|
|
|
|
|
|
|
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
|
2018-04-18 12:16:25 +02:00
|
|
|
end
|