diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-18 12:29:03 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-18 12:29:03 -0200 |
commit | 901973b4d73ceb46cedc2490d75122dce5d06f04 (patch) | |
tree | ffcd8181a2857a3069b15d02ad51ec54aedff077 /actionpack/lib | |
parent | 460c4efd711cc1fbcd87b4779fc682c149af36e9 (diff) | |
download | rails-901973b4d73ceb46cedc2490d75122dce5d06f04.tar.gz rails-901973b4d73ceb46cedc2490d75122dce5d06f04.tar.bz2 rails-901973b4d73ceb46cedc2490d75122dce5d06f04.zip |
Invoke html_escape on the proper receiver
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
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 |