diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-28 13:57:05 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-28 13:57:05 -0700 |
commit | 099fd0efc47225afde9394d5f4225fc8ddcd4ae8 (patch) | |
tree | f51f7162eff573ba692a4ddcbd60d144f3a2d0d4 /actionpack | |
parent | 6f66e7313b67fa92f31f69a2409c3ce4cc9ffca5 (diff) | |
download | rails-099fd0efc47225afde9394d5f4225fc8ddcd4ae8.tar.gz rails-099fd0efc47225afde9394d5f4225fc8ddcd4ae8.tar.bz2 rails-099fd0efc47225afde9394d5f4225fc8ddcd4ae8.zip |
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.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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) |