procedure: delete dossiers on destroy

This commit is contained in:
Pierre de La Morinerie 2019-01-23 16:13:14 +01:00
parent 3f0f22d849
commit fb75461c78
2 changed files with 15 additions and 5 deletions

View file

@ -54,6 +54,7 @@ class Admin::ProceduresController < AdminController
return render json: {}, status: 401
end
procedure.reset!
procedure.destroy
flash.notice = 'Démarche supprimée'