diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-18 09:47:21 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-18 09:47:21 -0200 |
commit | dfb3ff66985fa6c292c51353cfb7699367810e0a (patch) | |
tree | 6e20b006ac6a6e04773fdec97f2ca9dcec00f59d | |
parent | dc33cd620828d58c40cb6c5a5bdba8e259b0e0f8 (diff) | |
download | rails-dfb3ff66985fa6c292c51353cfb7699367810e0a.tar.gz rails-dfb3ff66985fa6c292c51353cfb7699367810e0a.tar.bz2 rails-dfb3ff66985fa6c292c51353cfb7699367810e0a.zip |
This or login doesn't make sense
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 6 |
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? |