demarches-normaliennes/app/controllers/backoffice_controller.rb

9 lines
330 B
Ruby
Raw Normal View History

2015-09-22 10:15:12 +02:00
class BackofficeController < ApplicationController
def index
redirect_to(controller: '/gestionnaires/sessions', action: :new) unless gestionnaire_signed_in?
@dossiers_a_traiter = Dossier.a_traiter.decorate
@dossiers_en_attente = Dossier.en_attente.decorate
@dossiers_termine = Dossier.termine.decorate
2015-09-22 10:15:12 +02:00
end
end