demarches-normaliennes/app/controllers/manager/procedures_controller.rb
2018-09-05 15:46:24 +02:00

10 lines
287 B
Ruby

module Manager
class ProceduresController < Manager::ApplicationController
def whitelist
procedure = Procedure.find(params[:id])
procedure.whitelist!
flash[:notice] = "Démarche whitelistée."
redirect_to manager_procedure_path(procedure)
end
end
end