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

11 lines
288 B
Ruby
Raw Normal View History

2017-12-28 19:44:11 +01:00
module Manager
class ProceduresController < Manager::ApplicationController
def whitelist
2018-01-10 17:42:21 +01:00
procedure = Procedure.find(params[:id])
procedure.whitelist!
flash[:notice] = "Procédure whitelistée."
redirect_to manager_procedure_path(procedure)
end
2017-12-28 19:44:11 +01:00
end
end