From b02edd15dc8f4af47e6a3e3c59198ca6255285b8 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Thu, 16 Nov 2023 11:03:33 +0100 Subject: [PATCH] remove condition - Colin feedback review --- app/controllers/administrateurs/procedures_controller.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/administrateurs/procedures_controller.rb b/app/controllers/administrateurs/procedures_controller.rb index b4e70ca84..ab7199a8a 100644 --- a/app/controllers/administrateurs/procedures_controller.rb +++ b/app/controllers/administrateurs/procedures_controller.rb @@ -305,12 +305,10 @@ module Administrateurs end def publish_revision - if @procedure.draft_changed? - @procedure.publish_revision! - flash.notice = "Nouvelle version de la démarche publiée" + @procedure.publish_revision! + flash.notice = "Nouvelle version de la démarche publiée" - redirect_to admin_procedure_path(@procedure) - end + redirect_to admin_procedure_path(@procedure) end def transfert