aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-13 15:42:46 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-13 15:42:46 -0700
commit947ebe9a6d516271092853f8164c414f126cff6e (patch)
treea510820e8824a158f3f8ab70f7b4a8812469ef6a /actionpack/lib/action_dispatch/routing
parent4868692687f2904d2a02c1d6cd09882b6916cc5f (diff)
downloadrails-947ebe9a6d516271092853f8164c414f126cff6e.tar.gz
rails-947ebe9a6d516271092853f8164c414f126cff6e.tar.bz2
rails-947ebe9a6d516271092853f8164c414f126cff6e.zip
remove Strexp
This was a useless object. We can just directly construct a Path::Pattern object without a Strexp object.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 0455686ec0..e549316f24 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -537,13 +537,7 @@ module ActionDispatch
end
def build_path(path, ast, requirements, anchor)
- strexp = Journey::Router::Strexp.new(
- ast,
- path,
- requirements,
- SEPARATORS)
-
- pattern = Journey::Path::Pattern.new(strexp, anchor)
+ pattern = Journey::Path::Pattern.new(ast, requirements, SEPARATORS, anchor)
builder = Journey::GTG::Builder.new ast