diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-11 01:55:18 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-11 01:55:18 +0000 |
commit | 971c4e61c2871d92c027a3cf5cbd9a5421499291 (patch) | |
tree | 54f5cdee344838f35462b42ea5bd082711945d57 /actionpack/lib | |
parent | 2bfaa055955ddc27aca97039a734c265adba6ed8 (diff) | |
download | rails-971c4e61c2871d92c027a3cf5cbd9a5421499291.tar.gz rails-971c4e61c2871d92c027a3cf5cbd9a5421499291.tar.bz2 rails-971c4e61c2871d92c027a3cf5cbd9a5421499291.zip |
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |