Fix for Devise's "true" flash message was broken. Fixed the fix.
This commit is contained in:
parent
317e583b97
commit
d22bfe411a
1 changed files with 3 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue