    # File lib/action_view/helpers/number_helper.rb, line 15
          def number_to_phone(number, options = {})
            options   = options.stringify_keys
            area_code = options.delete("area_code") { false }
            delimiter = options.delete("delimiter") { "-" }
            extension = options.delete("extension") { "" }
            begin
              str = area_code == true ? number.to_s.gsub(/([0-9]{3})([0-9]{3})([0-9]{4})/,"(\\1) \\2#{delimiter}\\3") : number.to_s.gsub(/([0-9]{3})([0-9]{3})([0-9]{4})/,"\\1#{delimiter}\\2#{delimiter}\\3")
              extension.to_s.strip.empty? ? str : "#{str} x #{extension.to_s.strip}"
            rescue
              number
            end
          end