aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 dc400b77c9..2d281f7e66 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -881,7 +881,7 @@ module ActionDispatch
shallow_prefix: options.fetch(:as, path)
}
- path_scope(options.delete(:path) || path) do
+ path_scope(options.delete(:path) { path }) do
scope(defaults.merge!(options)) { yield }
end
end