aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorNikita Beloglazov <nikelandjelo@gmail.com>2012-04-26 21:05:56 +0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-16 21:44:18 -0200
commit09c4dfa06bcf049ada7b127f70d3c5eb5e9cd91d (patch)
treecd75c401de5b91d51c4615a4d3da1d0d8ff316c0 /actionpack/lib/action_dispatch
parent88a296dccc401da143d90cad54b693ff06bf2b58 (diff)
downloadrails-09c4dfa06bcf049ada7b127f70d3c5eb5e9cd91d.tar.gz
rails-09c4dfa06bcf049ada7b127f70d3c5eb5e9cd91d.tar.bz2
rails-09c4dfa06bcf049ada7b127f70d3c5eb5e9cd91d.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 667094c469..966f5bf157 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -476,11 +476,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