aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-10-18 09:47:21 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-18 09:47:21 -0200
commitdfb3ff66985fa6c292c51353cfb7699367810e0a (patch)
tree6e20b006ac6a6e04773fdec97f2ca9dcec00f59d /actionpack
parentdc33cd620828d58c40cb6c5a5bdba8e259b0e0f8 (diff)
downloadrails-dfb3ff66985fa6c292c51353cfb7699367810e0a.tar.gz
rails-dfb3ff66985fa6c292c51353cfb7699367810e0a.tar.bz2
rails-dfb3ff66985fa6c292c51353cfb7699367810e0a.zip
This or login doesn't make sense
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/number_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb
index e3c5924b82..8a5928e4f2 100644
--- a/actionpack/lib/action_view/helpers/number_helper.rb
+++ b/actionpack/lib/action_view/helpers/number_helper.rb
@@ -58,10 +58,10 @@ module ActionView
number = number.to_s.strip
options = options.symbolize_keys
- area_code = options[:area_code] || nil
+ area_code = options[:area_code]
delimiter = options[:delimiter] || "-"
- extension = options[:extension].to_s.strip || nil
- country_code = options[:country_code] || nil
+ extension = options[:extension].to_s.strip
+ country_code = options[:country_code]
str = ""
str << "+#{country_code}#{delimiter}" unless country_code.blank?