diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 769742d66..526759957 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -113,6 +113,11 @@ class Procedure < ApplicationRecord publiee_ou_archivee? end + # This method is needed for transition. Eventually this will be the same as brouillon?. + def brouillon_avec_lien? + Flipflop.publish_draft? && brouillon? && procedure_path.present? + end + def publiee_ou_archivee? publiee? || archivee? end diff --git a/config/features.rb b/config/features.rb index 383c95364..e86bd43a3 100644 --- a/config/features.rb +++ b/config/features.rb @@ -16,6 +16,7 @@ Flipflop.configure do end feature :web_hook + feature :publish_draft feature :new_dossier_details, title: "Nouvelle page « Dossier »"