clean(admin): remove unused code from old controller
This commit is contained in:
parent
495b4988d2
commit
1f54986ab8
1 changed files with 0 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue