提交 378e3a66 编写于 作者: A Aaron Patterson

remove useless hash

we don't really need this hash.
上级 f3606895
......@@ -1106,7 +1106,7 @@ def collection_name
end
def resource_scope
{ :controller => controller }
controller
end
alias :collection_scope :path
......@@ -1684,7 +1684,7 @@ def resource_scope(kind, resource) #:nodoc:
@nesting.push(resource)
with_scope_level(kind) do
controller_scope(parent_resource.resource_scope[:controller]) { yield }
controller_scope(parent_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.
先完成此消息的编辑!
想要评论请 注册