Skip to content

Commit

Permalink
Remove warning of shadowing outer local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 27, 2013
1 parent 8a00866 commit 86f287e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionview/lib/action_view/helpers/url_helper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 86f287e

Please sign in to comment.