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:
parent
48127c637c
commit
66375434b6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue