From e18f9d9dfaadf1ff94a08c71c2abf23bc992da38 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Thu, 24 Jan 2019 15:48:00 +0100 Subject: [PATCH] [Fix Sentry 97] pass a string to flash instead of array --- app/controllers/manager/demandes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/manager/demandes_controller.rb b/app/controllers/manager/demandes_controller.rb index 932cfd8d6..ffdac506c 100644 --- a/app/controllers/manager/demandes_controller.rb +++ b/app/controllers/manager/demandes_controller.rb @@ -17,7 +17,7 @@ module Manager flash.notice = "Administrateur créé" redirect_to manager_demandes_path else - flash.now.alert = administrateur.errors.full_messages + flash.now.alert = administrateur.errors.full_messages.to_sentence @pending_demandes = pending_demandes render :index end