Permalink
Browse files

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.
  • Loading branch information...
1 parent 6f66e73 commit 099fd0efc47225afde9394d5f4225fc8ddcd4ae8 @tenderlove tenderlove committed Jul 28, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/routing/url_for.rb
@@ -171,8 +171,7 @@ def url_for(options = nil)
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)

0 comments on commit 099fd0e

Please sign in to comment.