From d2df3d2517fbad2d61a287d815b4221dafce71cc Mon Sep 17 00:00:00 2001 From: benji Date: Wed, 17 Feb 2016 12:13:21 +0100 Subject: [PATCH] Remove 'True' flash message when session expires. This is because devise uses flash to store logic, instead of only information that has to be given to the user. The 'timedout' key has been removed from the flash hash. This should be reverted when devise changes this. --- app/views/partials/_flash.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/partials/_flash.html.haml b/app/views/partials/_flash.html.haml index f953346..9b27ad6 100644 --- a/app/views/partials/_flash.html.haml +++ b/app/views/partials/_flash.html.haml @@ -1,3 +1,3 @@ -- flash.each do |key, value| +- flash.delete(:timedout).each do |key, value| .pure-alert{ class: "pure-alert-#{key}" } = value