demarches-normaliennes/config/features.rb

34 lines
814 B
Ruby
Raw Normal View History

2018-04-18 12:16:25 +02:00
Flipflop.configure do
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
feature :champ_pj,
title: "Champ pièce justificative"
feature :champ_siret,
title: "Champ SIRET"
feature :champ_linked_dropdown,
title: "Champ double menu déroulant"
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-18 12:16:25 +02:00
feature :web_hook
2018-08-13 17:52:56 +02:00
feature :publish_draft
2018-08-29 14:57:34 +02:00
feature :support_form
feature :enable_email_login_token
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,
default: ENV['APP_NAME'] == 'tps'
feature :pre_maintenance_mode
feature :maintenance_mode
2018-04-18 12:16:25 +02:00
end
end