diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-22 18:48:24 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-24 18:54:48 +0900 |
commit | bc4781583d9db237dd928b01743c6db7596a36b3 (patch) | |
tree | c9f88d46ee3c9c7b9d11a4aacb43c8b17f94f96d /actionpack/lib/action_dispatch/journey/router/utils.rb | |
parent | 589da3c10c3ac6139eb3f8cbcdedbcfddcedaeee (diff) | |
download | rails-bc4781583d9db237dd928b01743c6db7596a36b3.tar.gz rails-bc4781583d9db237dd928b01743c6db7596a36b3.tar.bz2 rails-bc4781583d9db237dd928b01743c6db7596a36b3.zip |
Privatize unneededly protected methods in Action Pack
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/router/utils.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router/utils.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router/utils.rb b/actionpack/lib/action_dispatch/journey/router/utils.rb index ce5d350763..d641642338 100644 --- a/actionpack/lib/action_dispatch/journey/router/utils.rb +++ b/actionpack/lib/action_dispatch/journey/router/utils.rb @@ -58,12 +58,12 @@ module ActionDispatch uri.gsub(ESCAPED) { |match| [match[1, 2].hex].pack("C") }.force_encoding(encoding) end - protected - def escape(component, pattern) + private + def escape(component, pattern) # :doc: component.gsub(pattern) { |unsafe| percent_encode(unsafe) }.force_encoding(US_ASCII) end - def percent_encode(unsafe) + def percent_encode(unsafe) # :doc: safe = EMPTY.dup unsafe.each_byte { |b| safe << DEC2HEX[b] } safe |