From 5c9c30ac65d25bd5a83d773739c2cd8fdd6da4d3 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 21 Apr 2010 01:33:48 -0300 Subject: url_for now works with HashWithIndifferentAccess ht jay [#4391 state:committed] Signed-off-by: Jeremy Kemper --- actionpack/lib/action_view/helpers/url_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers/url_helper.rb') diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 4ffc5ea127..13a54b0c21 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -102,7 +102,7 @@ module ActionView escape = true options when Hash - options = { :only_path => options[:host].nil? }.update(options.symbolize_keys) + options = { :only_path => options[:host].nil? }.update(options.to_hash.symbolize_keys) escape = options.key?(:escape) ? options.delete(:escape) : false super when :back -- cgit v1.2.3