aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-07 17:22:09 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-07 17:22:09 -0600
commit66375434b6c7e03a396bbeda3f7029dea2a59f23 (patch)
treea15faff705c02c583ce5d3b0de21913443436bd5 /actionpack/lib/action_dispatch/routing
parent48127c637c3cc0892d49f90a05b0034b9a625d73 (diff)
downloadrails-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/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
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