lib/generators/layout/install/templates/bootstrap3-messages.html.haml in rails_layout-1.0.8 vs lib/generators/layout/install/templates/bootstrap3-messages.html.haml in rails_layout-1.0.9
- old
+ new
@@ -1,6 +1,6 @@
-# Rails flash messages styled for Bootstrap 3.0
- flash.each do |name, msg|
- if msg.is_a?(String)
- %div{:class => "alert alert-#{name == :notice ? "success" : "danger"}"}
+ %div{:class => "alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}"}
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} ×
= content_tag :div, msg, :id => "flash_#{name}"