Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass symbol in as route name when match is used with a symbol

  • Loading branch information...
commit 66375434b6c7e03a396bbeda3f7029dea2a59f23 1 parent 48127c6
@josh josh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/routing/mapper.rb
View
2  actionpack/lib/action_dispatch/routing/mapper.rb
@@ -349,7 +349,7 @@ def match(*args)
options = args.extract_options!
if args.length > 1
- args.each { |path| match(path, options) }
+ args.each { |path| match(path, options.reverse_merge(:as => path.to_sym)) }
return self
end
Please sign in to comment.
Something went wrong with that request. Please try again.