From 4080dd2f244e7c4d140f8724c2075102ea9db36e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 30 Dec 2014 15:18:20 -0800 Subject: stop referencing `env` in url_for encapsulate env in the request so that we can eventually move away from the env hash --- actionpack/lib/action_dispatch/http/request.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib/action_dispatch/http') diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index b15f37d7f2..d211ea2b77 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -113,6 +113,10 @@ module ActionDispatch env['ORIGINAL_SCRIPT_NAME'.freeze] end + def engine_script_name(_routes) # :nodoc: + env["ROUTES_#{_routes.object_id}_SCRIPT_NAME"] + end + def request_method=(request_method) #:nodoc: if check_method(request_method) @request_method = env["REQUEST_METHOD"] = request_method -- cgit v1.2.3