[Fix Sentry 97] pass a string to flash instead of array

This commit is contained in:
Mathieu Magnin 2019-01-24 15:48:00 +01:00
parent 52990d828f
commit e18f9d9dfa

View file

@ -17,7 +17,7 @@ module Manager
flash.notice = "Administrateur créé" flash.notice = "Administrateur créé"
redirect_to manager_demandes_path redirect_to manager_demandes_path
else else
flash.now.alert = administrateur.errors.full_messages flash.now.alert = administrateur.errors.full_messages.to_sentence
@pending_demandes = pending_demandes @pending_demandes = pending_demandes
render :index render :index
end end