diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 15:44:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 15:44:15 -0700 |
commit | 95a5d177cc796bb801320c60e91e4374e3c7570d (patch) | |
tree | 5699940d7b0ac38dd51fd30c3e37c4456b7900b4 /actionpack/lib/action_dispatch/routing/route_set.rb | |
parent | 947ebe9a6d516271092853f8164c414f126cff6e (diff) | |
download | rails-95a5d177cc796bb801320c60e91e4374e3c7570d.tar.gz rails-95a5d177cc796bb801320c60e91e4374e3c7570d.tar.bz2 rails-95a5d177cc796bb801320c60e91e4374e3c7570d.zip |
`build_path` doesn't need the path variable anymore
It just constructs a Path::Pattern object with the AST that it already
has
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index e549316f24..279cbd232b 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -528,7 +528,7 @@ module ActionDispatch path = conditions.delete :path_info ast = conditions.delete :parsed_path_info required_defaults = conditions.delete :required_defaults - path = build_path(path, ast, requirements, anchor) + path = build_path(ast, requirements, anchor) conditions = build_conditions(conditions) route = @set.add_route(app, path, conditions, required_defaults, defaults, name) @@ -536,7 +536,7 @@ module ActionDispatch route end - def build_path(path, ast, requirements, anchor) + def build_path(ast, requirements, anchor) pattern = Journey::Path::Pattern.new(ast, requirements, SEPARATORS, anchor) builder = Journey::GTG::Builder.new ast |