Permalink
Browse files

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

  • Loading branch information...
1 parent 48127c6 commit 66375434b6c7e03a396bbeda3f7029dea2a59f23 @josh josh committed Dec 7, 2009
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

0 comments on commit 6637543

Please sign in to comment.