提交 dfb3ff66 编写于 作者: S Santiago Pastorino

This or login doesn't make sense

上级 dc33cd62
......@@ -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?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册