From 971c4e61c2871d92c027a3cf5cbd9a5421499291 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 11 Mar 2005 01:55:18 +0000 Subject: Params for components should treat string and symbol keys indifferently git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/components.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 5b6940b189..7a6c6139d4 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -54,7 +54,7 @@ module ActionController #:nodoc: request_for_component = @request.dup request_for_component.send( :instance_variable_set, :@parameters, - (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action], "id" => options[:id] }) + (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action], "id" => options[:id] }).with_indifferent_access ) return request_for_component end -- cgit v1.2.3