Permalink
Browse files

Remove warning of shadowing outer local variable

  • Loading branch information...
rafaelfranca committed Oct 27, 2013
1 parent 8a00866 commit 86f287e6cfc4181447d936d0d1c0336d944e7327
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionview/lib/action_view/helpers/url_helper.rb
@@ -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)

0 comments on commit 86f287e

Please sign in to comment.