diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-23 10:17:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-23 10:17:57 -0700 |
commit | ca0229670665b19fb394c6d03942759841d757dd (patch) | |
tree | 0fa1a914eb29bea8e3c242a3f13d5d339097399a /actionpack/lib/action_dispatch/journey | |
parent | 559d89c5b3381f6744b81e45bf423026fcaf4f9d (diff) | |
download | rails-ca0229670665b19fb394c6d03942759841d757dd.tar.gz rails-ca0229670665b19fb394c6d03942759841d757dd.tar.bz2 rails-ca0229670665b19fb394c6d03942759841d757dd.zip |
use the accessors on the request object rather than touching env
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb index 13850b43cb..1632c4490d 100644 --- a/actionpack/lib/action_dispatch/journey/router.rb +++ b/actionpack/lib/action_dispatch/journey/router.rb @@ -66,8 +66,8 @@ module ActionDispatch 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) |