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
- if flash
- flash.except(:timedout).each do |name,msg|
- flash.each do |name,msg|
- case name
- when 'notice'
- flash_color = 'white'
@ -9,6 +9,8 @@
- when 'alert'
- flash_color = 'white'
- flash_bgcolor = 'red'
- when 'timedout'
- next
- else
- flash_color = 'black'
- flash_bgcolor = 'gray'