aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-10 13:30:31 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-10 13:30:31 -0700
commit3c8775349c5ecbdbf98e1815b2d65d2955196564 (patch)
tree494b2d363bbe336033ef3f53aa62aa0ab76dd46d
parent6bc8ada05c348708232b1431f6e586ac1620542b (diff)
downloadrails-3c8775349c5ecbdbf98e1815b2d65d2955196564.tar.gz
rails-3c8775349c5ecbdbf98e1815b2d65d2955196564.tar.bz2
rails-3c8775349c5ecbdbf98e1815b2d65d2955196564.zip
avoid another call to `scope`
calling `scope` isn't cheap, so try to call cheaper methods that do the same thing for those particular parameters (in this case `path_scope`)
-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 433555a30a..11117dbc20 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1591,7 +1591,7 @@ module ActionDispatch
if @scope.resources?
with_scope_level(:root) do
- scope(parent_resource.path) do
+ path_scope(parent_resource.path) do
super(options)
end
end