提交 6a9d1925 编写于 作者: A Aaron Patterson

we have the resource on the stack, so just use it

We don't need to ask `scope` for the resource because we already have it
right here.
上级 942f4126
......@@ -1692,7 +1692,7 @@ def resource_scope(kind, resource) #:nodoc:
@nesting.push(resource)
with_scope_level(kind) do
controller_scope(parent_resource.resource_scope) { yield }
controller_scope(resource.resource_scope) { yield }
end
ensure
@nesting.pop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册