From 09c4dfa06bcf049ada7b127f70d3c5eb5e9cd91d Mon Sep 17 00:00:00 2001 From: Nikita Beloglazov Date: Thu, 26 Apr 2012 21:05:56 +0300 Subject: Fix bug when url_for changes controller. --- actionpack/lib/action_dispatch/routing/route_set.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3