mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove :doc:
in :nodoc:
class [ci skip]
The `:doc:` was added in bc478158
but originally `UriEncoder` is a
`:nodoc:` class.
This commit is contained in:
parent
da70168715
commit
7cb71c5ce3
1 changed files with 2 additions and 2 deletions
|
@ -59,11 +59,11 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
private
|
||||
def escape(component, pattern) # :doc:
|
||||
def escape(component, pattern)
|
||||
component.gsub(pattern) { |unsafe| percent_encode(unsafe) }.force_encoding(US_ASCII)
|
||||
end
|
||||
|
||||
def percent_encode(unsafe) # :doc:
|
||||
def percent_encode(unsafe)
|
||||
safe = EMPTY.dup
|
||||
unsafe.each_byte { |b| safe << DEC2HEX[b] }
|
||||
safe
|
||||
|
|
Loading…
Reference in a new issue