Just use a normal update on the indifferent hash

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 7bfca7e7
......@@ -153,7 +153,7 @@ def request_for_component(controller_name, options)
request.instance_variable_set(
:@parameters,
(options[:params] || {}).with_indifferent_access.regular_update(
(options[:params] || {}).with_indifferent_access.update(
"controller" => controller_name, "action" => options[:action], "id" => options[:id]
)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册