aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorNikita Beloglazov <nikelandjelo@gmail.com>2012-04-26 21:05:56 +0300
committerAndrew White <andyw@pixeltrix.co.uk>2012-05-09 11:53:14 +0100
commite154823935859ae918ca26a7e73477d331e4a142 (patch)
tree0e6871563132af959171d5f4df8f113b01949a48 /actionpack/lib/action_dispatch
parentf1cc45e56a4fc6e80bb4be4434dbf49d41adfd83 (diff)
downloadrails-e154823935859ae918ca26a7e73477d331e4a142.tar.gz
rails-e154823935859ae918ca26a7e73477d331e4a142.tar.bz2
rails-e154823935859ae918ca26a7e73477d331e4a142.zip
Fix bug when url_for changes controller.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 8fc0f283fc..a2044cc33b 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -494,11 +494,11 @@ module ActionDispatch
if options[:controller]
options[:action] ||= 'index'
- options[:controller] = options[:controller].to_s
+ options[:controller] = options[:controller].to_s.dup
end
if options[:action]
- options[:action] = options[:action].to_s
+ options[:action] = options[:action].to_s.dup
end
end