mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix URI.escape is obsolete warnings
This commit is contained in:
parent
3b1abcc222
commit
502e86ab85
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Rails::InfoController < Rails::ApplicationController # :nodoc:
|
|||
|
||||
def routes
|
||||
if path = params[:path]
|
||||
path = URI.escape path
|
||||
path = URI.parser.escape path
|
||||
normalized_path = with_leading_slash path
|
||||
render json: {
|
||||
exact: match_route {|it| it.match normalized_path },
|
||||
|
|
Loading…
Reference in a new issue