aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-13 15:16:25 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-13 15:16:25 -0700
commit4868692687f2904d2a02c1d6cd09882b6916cc5f (patch)
tree7c76897c944e5d02e2c0b34f02d7d01e404b8cdc /actionpack/lib/action_dispatch/routing
parent36f26fd47ecff07f229264560a68fca0d59911ca (diff)
downloadrails-4868692687f2904d2a02c1d6cd09882b6916cc5f.tar.gz
rails-4868692687f2904d2a02c1d6cd09882b6916cc5f.tar.bz2
rails-4868692687f2904d2a02c1d6cd09882b6916cc5f.zip
pass anchor directly to `Pattern`
the caller already has it, there is no reason to pack it in to an object and just throw that object away.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index b72031633b..0455686ec0 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -541,10 +541,9 @@ module ActionDispatch
ast,
path,
requirements,
- SEPARATORS,
- anchor)
+ SEPARATORS)
- pattern = Journey::Path::Pattern.new(strexp)
+ pattern = Journey::Path::Pattern.new(strexp, anchor)
builder = Journey::GTG::Builder.new ast