diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 52519188a91ce6ee2f251302172017d0052f9118..1264e7e00bf6cfea25e0a9a9af87f1908af1030a 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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