diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 14:05:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 14:05:00 -0700 |
commit | 68dd5abf1459e22ca64295ca3b4d6bcf2a525849 (patch) | |
tree | dbffc48c304a6b5938417c32d77106c75c16fc14 | |
parent | 565582c0f5f1fe17357df67978e2f684db305bf9 (diff) | |
download | rails-68dd5abf1459e22ca64295ca3b4d6bcf2a525849.tar.gz rails-68dd5abf1459e22ca64295ca3b4d6bcf2a525849.tar.bz2 rails-68dd5abf1459e22ca64295ca3b4d6bcf2a525849.zip |
remove `process_path`
since we've extracted the `to` initialization, there's no need for
`process_path`
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 4411625e51..093c5a1b04 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1553,7 +1553,8 @@ to this: route_options[:as] = _path _path = option_path end - process_path(route_options, controller, _path, _path, to, via, formatted, anchor, options_constraints) + to = get_to_from_path(_path, to, route_options[:action]) + decomposed_match(_path, controller, route_options, _path, to, via, formatted, anchor, options_constraints) end path_types.fetch(Symbol, []).each do |action| @@ -1575,11 +1576,6 @@ to this: end end - def process_path(options, controller, path, option_path, to, via, formatted, ancho, options_constraintsr) - to = get_to_from_path(path, to, options[:action]) - decomposed_match(path, controller, options, option_path, to, via, formatted, ancho, options_constraintsr) - end - def using_match_shorthand?(path) path =~ %r{^/?[-\w]+/[-\w/]+$} end |