summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-20 09:13:25 +0200
committerAzul <azul@leap.se>2014-05-26 12:59:26 +0200
commit730e31017109994c24db431fde12f575ed5c1467 (patch)
tree027f9878e38ba339ad20f565278e1e9143a98b52 /app/views/layouts
parente7d6bcce2a04a049926e75074605a2e7f91ede1a (diff)
FlashResponder will automagically add flash messages
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_messages.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_messages.html.haml b/app/views/layouts/_messages.html.haml
index 7ff985f..18be54f 100644
--- a/app/views/layouts/_messages.html.haml
+++ b/app/views/layouts/_messages.html.haml
@@ -1,6 +1,6 @@
#messages
- flash.each do |name, msg|
- if msg.is_a?(String)
- %div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
+ %div{:class => "alert alert-#{name == :notice ? "success" : name}"}
%a.close{"data-dismiss" => "alert"} ×
= content_tag :div, format_flash(msg), :id => "flash_#{name}"