提交 86f287e6 编写于 作者: R Rafael Mendonça França

Remove warning of shadowing outer local variable

上级 8a008660
......@@ -314,8 +314,8 @@ def button_to(name = nil, options = nil, html_options = nil, &block)
inner_tags = method_tag.safe_concat(button).safe_concat(request_token_tag)
if params
params.each do |name, value|
inner_tags.safe_concat tag(:input, type: "hidden", name: name, value: value.to_param)
params.each do |param_name, value|
inner_tags.safe_concat tag(:input, type: "hidden", name: param_name, value: value.to_param)
end
end
content_tag('form', content_tag('div', inner_tags), form_options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册