demarches-normaliennes/app/controllers/manager/gestionnaires_controller.rb

11 lines
301 B
Ruby
Raw Normal View History

2018-05-31 15:18:06 +02:00
module Manager
class GestionnairesController < Manager::ApplicationController
2018-06-14 16:41:10 +02:00
def reinvite
gestionnaire = Gestionnaire.find(params[:id])
gestionnaire.invite!
flash[:notice] = "Instructeur réinvité."
2018-06-14 16:41:10 +02:00
redirect_to manager_gestionnaire_path(gestionnaire)
end
2018-05-31 15:18:06 +02:00
end
end