Permalink
Browse files

Update app/helpers/bootstrap_flash_helper.rb

Devise is sending "timedout" (timeDout) instead of "timeout".
  • Loading branch information...
1 parent c78625b commit fd2b45c84f44240e80d719154a09f89807774bbf @lucasmoreira lucasmoreira committed Nov 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/helpers/bootstrap_flash_helper.rb
@@ -2,8 +2,9 @@ module BootstrapFlashHelper
def bootstrap_flash
flash_messages = []
flash.each do |type, message|
- # Skip Devise :timeout flag
+ # Skip Devise :timeout and :timedout flags
next if type == :timeout
+ next if type == :timedout
type = :success if type == :notice
type = :error if type == :alert
text = content_tag(:div,

0 comments on commit fd2b45c

Please sign in to comment.