提交 3c877534 编写于 作者: A Aaron Patterson

avoid another call to `scope`

calling `scope` isn't cheap, so try to call cheaper methods that do the
same thing for those particular parameters (in this case `path_scope`)
上级 6bc8ada0
......@@ -1591,7 +1591,7 @@ def root(path, options={})
if @scope.resources?
with_scope_level(:root) do
scope(parent_resource.path) do
path_scope(parent_resource.path) do
super(options)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册