提交 1c1f6543 编写于 作者: A Aaron Patterson

fix tests on Ruby 2.0.0

上级 817a20b1
......@@ -99,7 +99,7 @@ def _routes_context #:nodoc:
protected :_routes_context
def optimize_routes_generation? #:nodoc:
controller.respond_to?(:optimize_routes_generation?) ?
controller.respond_to?(:optimize_routes_generation?, true) ?
controller.optimize_routes_generation? : super
end
protected :optimize_routes_generation?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册