Enable support_form for all

This commit is contained in:
Paul Chavard 2019-01-17 11:52:38 +01:00
parent 579dbe05b2
commit 9136c9dfa0
3 changed files with 2 additions and 9 deletions

View file

@ -85,13 +85,8 @@ module ApplicationHelper
tags, type, dossier_id = options.values_at(:tags, :type, :dossier_id) tags, type, dossier_id = options.values_at(:tags, :type, :dossier_id)
options.except!(:tags, :type, :dossier_id) options.except!(:tags, :type, :dossier_id)
if Flipflop.support_form? params = { tags: tags, type: type, dossier_id: dossier_id }.compact
params = { tags: tags, type: type, dossier_id: dossier_id }.compact link_to title, contact_url(params), options
link_to title, contact_url(params), options
else
mail_to CONTACT_EMAIL, title,
options.merge(subject: "Question à propos de demarches-simplifiees.fr")
end
end end
def root_path_for_profile(nav_bar_profile) def root_path_for_profile(nav_bar_profile)

View file

@ -17,7 +17,6 @@ Flipflop.configure do
feature :web_hook feature :web_hook
feature :publish_draft feature :publish_draft
feature :support_form
feature :enable_email_login_token feature :enable_email_login_token
feature :new_champs_editor feature :new_champs_editor

View file

@ -3,7 +3,6 @@ require 'spec_helper'
describe 'layouts/_new_header.html.haml', type: :view do describe 'layouts/_new_header.html.haml', type: :view do
describe 'logo link' do describe 'logo link' do
before do before do
Flipflop::FeatureSet.current.test!.switch!(:support_form, true)
sign_in user sign_in user
allow(controller).to receive(:nav_bar_profile).and_return(profile) allow(controller).to receive(:nav_bar_profile).and_return(profile)
render render