aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb8
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