Permalink
Browse files

This or login doesn't make sense

  • Loading branch information...
1 parent dc33cd6 commit dfb3ff66985fa6c292c51353cfb7699367810e0a @spastorino spastorino committed Oct 18, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/helpers/number_helper.rb
@@ -58,10 +58,10 @@ def number_to_phone(number, options = {})
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?

1 comment on commit dfb3ff6

Owner

spastorino commented on dfb3ff6 Oct 18, 2010

hehe is not login here -> logic

Please sign in to comment.