aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey/router.rb
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2014-06-18 19:16:30 -0700
committerGuo Xiang Tan <tgx_world@hotmail.com>2015-02-26 12:18:20 +0800
commit89edfbd3a452ce80b1865b136df8a13aad7835b4 (patch)
treec14acedf89bc351251f694a500bfb9fee6f3b453 /actionpack/lib/action_dispatch/journey/router.rb
parent89e051ace345b6e5d652b039e55ce00eafe1ed6b (diff)
downloadrails-89edfbd3a452ce80b1865b136df8a13aad7835b4.tar.gz
rails-89edfbd3a452ce80b1865b136df8a13aad7835b4.tar.bz2
rails-89edfbd3a452ce80b1865b136df8a13aad7835b4.zip
Partition routes during setup.
Partitioning of all the routes is currently being done during the first request. Since there is no need to clear the cache for `partitioned_routes` when adding a new route. We can move the partitioning of the routes during setup time.
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/router.rb')
-rw-r--r--actionpack/lib/action_dispatch/journey/router.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb
index e9df984c86..ed63a5bd8b 100644
--- a/actionpack/lib/action_dispatch/journey/router.rb
+++ b/actionpack/lib/action_dispatch/journey/router.rb
@@ -88,7 +88,7 @@ module ActionDispatch
end
def custom_routes
- partitioned_routes.last
+ routes.custom_routes
end
def filter_routes(path)