Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update app/helpers/bootstrap_flash_helper.rb

Devise is sending "timedout" (timeDout) instead of "timeout".
  • Loading branch information...
commit fd2b45c84f44240e80d719154a09f89807774bbf 1 parent c78625b
Lucas Moreira authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/helpers/bootstrap_flash_helper.rb
View
3  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,
Please sign in to comment.
Something went wrong with that request. Please try again.