Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use the accessors on the request object rather than touching env

  • Loading branch information...
commit ca0229670665b19fb394c6d03942759841d757dd 1 parent 559d89c
@tenderlove tenderlove authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/journey/router.rb
View
4 actionpack/lib/action_dispatch/journey/router.rb
@@ -66,8 +66,8 @@ def recognize(req)
find_routes(rails_req).each do |match, parameters, route|
unless route.path.anchored
- req.env['SCRIPT_NAME'] = match.to_s
- req.env['PATH_INFO'] = match.post_match.sub(/^([^\/])/, '/\1')
+ rails_req.script_name = match.to_s
+ rails_req.path_info = match.post_match.sub(/^([^\/])/, '/\1')
end
yield(route, parameters)
Please sign in to comment.
Something went wrong with that request. Please try again.