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-12-18 11:17:52 +01:00
|
|
|
|
feature :champ_repetition,
|
|
|
|
|
title: "Bloc répétable (NE MARCHE PAS – NE PAS ACTIVER)"
|
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-08-13 17:52:56 +02:00
|
|
|
|
feature :publish_draft
|
2018-11-08 17:14:24 +01:00
|
|
|
|
feature :enable_email_login_token
|
2018-11-14 16:28:02 +01:00
|
|
|
|
feature :new_champs_editor
|
2018-04-25 15:09:24 +02:00
|
|
|
|
|
2018-04-18 12:16:25 +02:00
|
|
|
|
group :production do
|
|
|
|
|
feature :remote_storage,
|
2018-08-22 17:36:15 +02:00
|
|
|
|
default: ENV['FOG_ENABLED'] == 'enabled'
|
2018-04-18 12:16:25 +02:00
|
|
|
|
feature :weekly_overview,
|
2018-09-04 14:44:08 +02:00
|
|
|
|
default: ENV['APP_NAME'] == 'tps'
|
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
|