diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-07 17:22:09 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-07 17:22:09 -0600 |
commit | 66375434b6c7e03a396bbeda3f7029dea2a59f23 (patch) | |
tree | a15faff705c02c583ce5d3b0de21913443436bd5 /actionpack/lib | |
parent | 48127c637c3cc0892d49f90a05b0034b9a625d73 (diff) | |
download | rails-66375434b6c7e03a396bbeda3f7029dea2a59f23.tar.gz rails-66375434b6c7e03a396bbeda3f7029dea2a59f23.tar.bz2 rails-66375434b6c7e03a396bbeda3f7029dea2a59f23.zip |
Pass symbol in as route name when match is used with a symbol
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 400039353c..d9724161a9 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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 |