Skip to content

Commit

Permalink
use a better default template for flush_flash helper
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwongpp committed Nov 5, 2011
1 parent b44ff91 commit 56f3f81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/flushing-flash/action_view_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ def flush_flash(target=:default, options={})
render partial: using_template, locals: { messages: msgs }
else
msgs.collect do |msg|
content_tag :div, class: "alert-message #{msg[:message_type]} fade in" do
concat link_to("x", "#", class: "close")
concat content_tag(:p, msg[:content].html_safe)
content_tag :div, class: "flash-message #{msg[:message_type]}" do
concat content_tag(:p, msg[:content])
end
end.join.html_safe
end
Expand Down

0 comments on commit 56f3f81

Please sign in to comment.