app/helpers/bootstrap_flash_helper.rb in twitter-bootstrap-rails-2.1.4 vs app/helpers/bootstrap_flash_helper.rb in twitter-bootstrap-rails-2.1.5
- old
+ new
@@ -1,8 +1,10 @@
module BootstrapFlashHelper
def bootstrap_flash
flash_messages = []
flash.each do |type, message|
+ # Skip Devise :timeout flag
+ next if type == :timeout
type = :success if type == :notice
type = :error if type == :alert
text = content_tag(:div,
content_tag(:button, raw("×"), :class => "close", "data-dismiss" => "alert") +
message, :class => "alert fade in alert-#{type}")
\ No newline at end of file