Fix for Devise's "true" flash message was broken. Fixed the fix.

This commit is contained in:
Christoph Haas 2017-08-17 19:22:11 +02:00
parent 317e583b97
commit d22bfe411a

View file

@ -1,7 +1,7 @@
// Display alert messages to the user // Display alert messages to the user
- if flash - if flash
- flash.except(:timedout).each do |name,msg| - flash.each do |name,msg|
- case name - case name
- when 'notice' - when 'notice'
- flash_color = 'white' - flash_color = 'white'
@ -9,6 +9,8 @@
- when 'alert' - when 'alert'
- flash_color = 'white' - flash_color = 'white'
- flash_bgcolor = 'red' - flash_bgcolor = 'red'
- when 'timedout'
- next
- else - else
- flash_color = 'black' - flash_color = 'black'
- flash_bgcolor = 'gray' - flash_bgcolor = 'gray'