Merge pull request #3330 from betagouv/fix-sentry-97

[Fix Sentry 97] pass a string to flash instead of array
This commit is contained in:
Pierre de La Morinerie 2019-01-24 16:34:17 +01:00 committed by GitHub
commit 8995908eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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