From 378e3a666e9ed6b0fb037a1082ff0b13b850acaa Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 8 Aug 2015 18:57:47 -0700 Subject: remove useless hash we don't really need this hash. --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 52519188a9..1264e7e00b 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1106,7 +1106,7 @@ module ActionDispatch end def resource_scope - { :controller => controller } + controller end alias :collection_scope :path @@ -1684,7 +1684,7 @@ module ActionDispatch @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 -- cgit v1.2.3