diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-05 17:13:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-05 17:13:19 -0700 |
commit | a31bfe69837b63a6501925d37e1ebd149e90e1a0 (patch) | |
tree | cb77c996a7f7743d2f7fd1f0d88cfe17fc189698 /actionpack/lib | |
parent | df71e48be8b08edf287a0ec855342c89bbb94218 (diff) | |
download | rails-a31bfe69837b63a6501925d37e1ebd149e90e1a0.tar.gz rails-a31bfe69837b63a6501925d37e1ebd149e90e1a0.tar.bz2 rails-a31bfe69837b63a6501925d37e1ebd149e90e1a0.zip |
routes in the env via the request object
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 802e7ce539..a0d8f552ac 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -110,6 +110,10 @@ module ActionDispatch env["action_dispatch.routes".freeze] end + def routes=(routes) # :nodoc: + env["action_dispatch.routes".freeze] = routes + end + def original_script_name # :nodoc: env['ORIGINAL_SCRIPT_NAME'.freeze] end |