method

percent_escape

rails latest stable - Class: ActiveStorage::Filename::Parameters

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

percent_escape(string, pattern)
private

No documentation available.

# File activestorage/app/models/active_storage/filename/parameters.rb, line 31
    def percent_escape(string, pattern)
      string.gsub(pattern) do |char|
        char.bytes.map { |byte| "%%%02X" % byte }.join
      end
    end