Add flash when procedure is whitelisted

This commit is contained in:
Mathieu Magnin 2018-01-10 17:54:43 +01:00
parent 1ebaab51de
commit f772adc582

View file

@ -3,6 +3,7 @@ module Manager
def whitelist
procedure = Procedure.find(params[:id])
procedure.whitelist!
flash[:notice] = "Procédure whitelistée."
redirect_to manager_procedure_path(procedure)
end
end