1
0
Fork 0
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:
Andrew White 2015-05-05 05:13:15 +01:00
parent 3b1abcc222
commit 502e86ab85

View file

@ -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 },