From e2ff64a119fb464db38e962d67af65ca0eb5c59f Mon Sep 17 00:00:00 2001 From: Tanguy PATTE Date: Tue, 18 Aug 2015 16:30:36 +0200 Subject: [PATCH] add comment --- app/controllers/demandes_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/demandes_controller.rb b/app/controllers/demandes_controller.rb index 0975837b8..74b84249f 100644 --- a/app/controllers/demandes_controller.rb +++ b/app/controllers/demandes_controller.rb @@ -7,6 +7,7 @@ class DemandesController < ApplicationController def update dossier = Dossier.find(params[:dossier_id]) if !dossier.formulaire.nil? + # TODO: redirect to start with an error message raise "La modification du formulaire n'est pas possible" end dossier.update_attributes(formulaire_id: params[:formulaire])