aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-08-12 16:44:31 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-08-12 16:56:29 +0530
commit8196c842b6f32271c23cba6b97918d32747018d8 (patch)
tree24b81937648936fb4dc29e00b3a220d8fb5a6cc0 /actionpack/lib/action_dispatch/routing
parentd1f1b04386cb50521128b3e44630f704bb738194 (diff)
downloadrails-8196c842b6f32271c23cba6b97918d32747018d8.tar.gz
rails-8196c842b6f32271c23cba6b97918d32747018d8.tar.bz2
rails-8196c842b6f32271c23cba6b97918d32747018d8.zip
We actually don't need a reverse_merge! here. dup removed was giving error with nil class.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 5d354b0fb8..de14113c51 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -140,7 +140,7 @@ module ActionDispatch
when String
options
when nil, Hash
- _routes.url_for((options.dup || {}).reverse_merge!(url_options).symbolize_keys)
+ _routes.url_for((options || {}).reverse_merge(url_options).symbolize_keys)
else
polymorphic_url(options)
end