Permalink
Browse files

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
  • Loading branch information...
1 parent 2bfaa05 commit 971c4e61c2871d92c027a3cf5cbd9a5421499291 @dhh dhh committed Mar 11, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/components.rb
@@ -54,7 +54,7 @@ def request_for_component(options)
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

0 comments on commit 971c4e6

Please sign in to comment.