Cleanup feature flags usage

This commit is contained in:
Paul Chavard 2021-03-03 18:20:34 +01:00
parent 46377fb7d9
commit 1c811083c0
9 changed files with 20 additions and 18 deletions

View file

@ -41,7 +41,7 @@
= link_to 'Voir mes dossiers en cours', dossiers_path, class: ['button large expand primary']
= link_to 'Commencer un nouveau dossier', url_for_new_dossier(@procedure), class: ['button large expand']
- if feature_enabled_for?(:dossier_pdf_vide, @procedure)
- if @procedure.feature_enabled?(:dossier_pdf_vide)
- pdf_link = commencer_dossier_vide_path(path: @procedure.path)
- if @procedure.brouillon?
- pdf_link = commencer_dossier_vide_test_path(path: @procedure.path)