diff options
author | dixpac <dino.onex@gmail.com> | 2017-04-30 15:10:21 +0200 |
---|---|---|
committer | dixpac <dino.onex@gmail.com> | 2017-04-30 15:17:09 +0200 |
commit | 0d0015c98ad9af08f812a692ca30a70e66a75159 (patch) | |
tree | 8f692034e6c0c97b1abefeb4eaae6c5cd15e5f72 | |
parent | 5fa0a93119e94208e3a361dbd8908a9f08c10bae (diff) | |
download | rails-0d0015c98ad9af08f812a692ca30a70e66a75159.tar.gz rails-0d0015c98ad9af08f812a692ca30a70e66a75159.tar.bz2 rails-0d0015c98ad9af08f812a692ca30a70e66a75159.zip |
Add docs for Router::Utils.unescape_uri method
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router/utils.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router/utils.rb b/actionpack/lib/action_dispatch/journey/router/utils.rb index ffcd875b4d..f937597c1b 100644 --- a/actionpack/lib/action_dispatch/journey/router/utils.rb +++ b/actionpack/lib/action_dispatch/journey/router/utils.rb @@ -84,6 +84,10 @@ module ActionDispatch ENCODER.escape_fragment(fragment.to_s) end + # Replaces any escaped sequences with their unescaped representations + # + # uri = "/topics?title=Ruby%20on%20Rails" + # unescape_uri(uri) #=> "/topics?title=Ruby on Rails" def self.unescape_uri(uri) ENCODER.unescape_uri(uri) end |