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