remove condition - Colin feedback review

This commit is contained in:
Lisa Durand 2023-11-16 11:03:33 +01:00
parent ac834b0c0a
commit b02edd15dc

View file

@ -305,12 +305,10 @@ module Administrateurs
end end
def publish_revision def publish_revision
if @procedure.draft_changed? @procedure.publish_revision!
@procedure.publish_revision! flash.notice = "Nouvelle version de la démarche publiée"
flash.notice = "Nouvelle version de la démarche publiée"
redirect_to admin_procedure_path(@procedure) redirect_to admin_procedure_path(@procedure)
end
end end
def transfert def transfert