提交 099fd0ef 编写于 作者: A Aaron Patterson

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.
上级 6f66e731
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册