demarches-normaliennes/config/features.rb
2019-01-17 15:17:48 +01:00

39 lines
997 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Flipflop.configure do
strategy :cookie,
secure: Rails.env.production?,
httponly: true
strategy :active_record
strategy :user_preference
strategy :default
group :champs do
feature :champ_siret,
title: "Champ SIRET"
feature :champ_integer_number,
title: "Champ nombre entier"
feature :champ_repetition,
title: "Bloc répétable (NE MARCHE PAS NE PAS ACTIVER)"
end
feature :web_hook
feature :publish_draft
feature :enable_email_login_token
feature :new_champs_editor
group :production do
feature :remote_storage,
default: ENV['FOG_ENABLED'] == 'enabled'
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