demarches-normaliennes/app/controllers/new_administrateur/procedures_controller.rb

19 lines
343 B
Ruby
Raw Normal View History

2018-04-13 16:56:00 +02:00
module NewAdministrateur
class ProceduresController < AdministrateurController
def apercu
@dossier = procedure_without_control.new_dossier
@tab = apercu_tab
2018-04-13 16:56:00 +02:00
end
private
def apercu_tab
params[:tab] || 'dossier'
end
2018-04-13 16:56:00 +02:00
def procedure_without_control
Procedure.find(params[:id])
end
end
end