aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index ab13fb14ce..c93a64fcf4 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1692,7 +1692,7 @@ module ActionDispatch
@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