Skip to content

Commit

Permalink
Merge pull request #824 from leonardomarques/patch-1
Browse files Browse the repository at this point in the history
Turn msg to html safe
  • Loading branch information
toadkicker committed Dec 25, 2014
2 parents 67f160d + 23c2050 commit b701e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/bootstrap_flash_helper.rb
Expand Up @@ -16,7 +16,7 @@ def bootstrap_flash(options = {})
Array(message).each do |msg|
text = content_tag(:div,
content_tag(:button, raw("×"), :class => "close", "data-dismiss" => "alert") +
msg, :class => "alert fade in alert-#{type} #{options[:class]}")
msg.html_safe, :class => "alert fade in alert-#{type} #{options[:class]}")
flash_messages << text if msg
end
end
Expand Down

0 comments on commit b701e23

Please sign in to comment.