From 7c4396d5350dee8a8809e4a50650eb2c898e0109 Mon Sep 17 00:00:00 2001 From: Andy Zhao Date: Fri, 12 Oct 2018 11:56:45 -0400 Subject: [PATCH] Handle flash messages that are not arrays (#895) --- app/views/devise/shared/_authorization_error.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/devise/shared/_authorization_error.html.erb b/app/views/devise/shared/_authorization_error.html.erb index 98a58f6ac..aa39f3958 100644 --- a/app/views/devise/shared/_authorization_error.html.erb +++ b/app/views/devise/shared/_authorization_error.html.erb @@ -13,6 +13,7 @@ <% unless flash[:alert].blank? %>
Something went wrong: + <% if flash[:alert].is_a?(Array) %> + <% else %> + <%= flash[:alert] %> +
+ <% end %> Please try again below, or contact yo@dev.to if this persists.
<% end %>