    # File lib/action_view/helpers/number_helper.rb, line 55
          def number_to_currency(number, options = {})
            options   = options.stringify_keys
            precision = options["precision"] || 2
            unit      = options["unit"] || "$"
            separator = precision > 0 ? options["separator"] || "." : ""
            delimiter = options["delimiter"] || ","

            begin
              parts = number_with_precision(number, precision).split('.')
              unit + number_with_delimiter(parts[0], delimiter) + separator + parts[1].to_s
            rescue
              number
            end
          end