Skip to content

Commit

Permalink
NumberHelper#number_to_currency should output html_safe strings so th…
Browse files Browse the repository at this point in the history
…e units are not escaped
  • Loading branch information
dhh committed Jan 5, 2010
1 parent 38f6697 commit 2dc5aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/number_helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def number_to_currency(number, options = {})
:precision => precision, :precision => precision,
:delimiter => delimiter, :delimiter => delimiter,
:separator => separator) :separator => separator)
).gsub(/%u/, unit) ).gsub(/%u/, unit).html_safe!
rescue rescue
number number
end end
Expand Down

0 comments on commit 2dc5aee

Please sign in to comment.