Permalink
Browse files

NumberHelper#number_to_currency should output html_safe strings so th…

…e units are not escaped
  • Loading branch information...
1 parent 38f6697 commit 2dc5aeed6d73fb7c68bdfb675e025747a341697a @dhh dhh committed Jan 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/number_helper.rb
View
2 actionpack/lib/action_view/helpers/number_helper.rb
@@ -92,7 +92,7 @@ def number_to_currency(number, options = {})
:precision => precision,
:delimiter => delimiter,
:separator => separator)
- ).gsub(/%u/, unit)
+ ).gsub(/%u/, unit).html_safe!
rescue
number
end

0 comments on commit 2dc5aee

Please sign in to comment.