aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/number_helper.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-10-18 12:29:03 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-18 12:29:03 -0200
commit901973b4d73ceb46cedc2490d75122dce5d06f04 (patch)
treeffcd8181a2857a3069b15d02ad51ec54aedff077 /actionpack/lib/action_view/helpers/number_helper.rb
parent460c4efd711cc1fbcd87b4779fc682c149af36e9 (diff)
downloadrails-901973b4d73ceb46cedc2490d75122dce5d06f04.tar.gz
rails-901973b4d73ceb46cedc2490d75122dce5d06f04.tar.bz2
rails-901973b4d73ceb46cedc2490d75122dce5d06f04.zip
Invoke html_escape on the proper receiver
Diffstat (limited to 'actionpack/lib/action_view/helpers/number_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/number_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb
index b2842f5f8c..82f3f222c6 100644
--- a/actionpack/lib/action_view/helpers/number_helper.rb
+++ b/actionpack/lib/action_view/helpers/number_helper.rb
@@ -74,7 +74,7 @@ module ActionView
str << "+#{country_code}#{delimiter}" unless country_code.blank?
str << number
str << " x #{extension}" unless extension.blank?
- html_escape(str)
+ ERB::Util.html_escape(str)
end
# Formats a +number+ into a currency string (e.g., $13.65). You can customize the format