1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Joshua Peek 2009-12-07 17:22:09 -06:00
parent 48127c637c
commit 66375434b6

View file

@ -349,7 +349,7 @@ module ActionDispatch
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