From 099fd0efc47225afde9394d5f4225fc8ddcd4ae8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 28 Jul 2014 13:57:05 -0700 Subject: remove some caching this caching doesn't increase performance, but does increase complexity. remove it for now and find better ways to speed up this code. --- actionpack/lib/action_dispatch/routing/url_for.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch/routing/url_for.rb') diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index e1c73f8f07..eb554ec383 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -171,8 +171,7 @@ module ActionDispatch protected def optimize_routes_generation? - return @_optimized_routes if defined?(@_optimized_routes) - @_optimized_routes = _routes.optimize_routes_generation? && default_url_options.empty? + _routes.optimize_routes_generation? && default_url_options.empty? end def _with_routes(routes) -- cgit v1.2.3