diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-01 01:11:14 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-01 01:11:14 +0900 |
commit | 7cb71c5ce37b7bc599de851d44eaa6a948daec03 (patch) | |
tree | 48c2da6a69b250e5ed67c5ad7632cce1b9deb680 /actionpack/lib/action_dispatch/journey/router/utils.rb | |
parent | da70168715c02980986279d60e3c6631cfb164d2 (diff) | |
download | rails-7cb71c5ce37b7bc599de851d44eaa6a948daec03.tar.gz rails-7cb71c5ce37b7bc599de851d44eaa6a948daec03.tar.bz2 rails-7cb71c5ce37b7bc599de851d44eaa6a948daec03.zip |
Remove `:doc:` in `:nodoc:` class [ci skip]
The `:doc:` was added in bc478158 but originally `UriEncoder` is a
`:nodoc:` class.
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/router/utils.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router/utils.rb b/actionpack/lib/action_dispatch/journey/router/utils.rb index e6353f0142..e624b4c80d 100644 --- a/actionpack/lib/action_dispatch/journey/router/utils.rb +++ b/actionpack/lib/action_dispatch/journey/router/utils.rb @@ -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 |