clean(admin): remove unused code from old controller

This commit is contained in:
Paul Chavard 2022-12-14 09:14:14 +01:00
parent 495b4988d2
commit 1f54986ab8

View file

@ -4,20 +4,4 @@ class AdminController < ApplicationController
def index
redirect_to(admin_procedures_path)
end
def retrieve_procedure
id = params[:procedure_id] || params[:id]
@procedure = current_administrateur.procedures.find(id)
rescue ActiveRecord::RecordNotFound
flash.alert = 'Démarche inexistante'
redirect_to admin_procedures_path, status: 404
end
def reset_procedure
if @procedure.brouillon?
@procedure.reset!
end
end
end