aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-10-18 09:48:24 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-18 09:48:24 -0200
commit1a0f72d0e347b23f4f402f3c6d427eb73386b36d (patch)
treef82af9e1d56a9b00fb133b31e4c39b7811db4dba /actionpack
parentdfb3ff66985fa6c292c51353cfb7699367810e0a (diff)
downloadrails-1a0f72d0e347b23f4f402f3c6d427eb73386b36d.tar.gz
rails-1a0f72d0e347b23f4f402f3c6d427eb73386b36d.tar.bz2
rails-1a0f72d0e347b23f4f402f3c6d427eb73386b36d.zip
Why strip only the extension, this can be done by the user
Diffstat (limited to 'actionpack')
-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 8a5928e4f2..0bb1cdea51 100644
--- a/actionpack/lib/action_view/helpers/number_helper.rb
+++ b/actionpack/lib/action_view/helpers/number_helper.rb
@@ -60,7 +60,7 @@ module ActionView
options = options.symbolize_keys
area_code = options[:area_code]
delimiter = options[:delimiter] || "-"
- extension = options[:extension].to_s.strip
+ extension = options[:extension]
country_code = options[:country_code]
str = ""