diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 15:42:46 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 15:42:46 -0700 |
commit | 947ebe9a6d516271092853f8164c414f126cff6e (patch) | |
tree | a510820e8824a158f3f8ab70f7b4a8812469ef6a /actionpack/lib/action_dispatch/routing | |
parent | 4868692687f2904d2a02c1d6cd09882b6916cc5f (diff) | |
download | rails-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.rb | 8 |
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 |