aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-27 20:18:08 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-27 20:18:08 -0200
commit86f287e6cfc4181447d936d0d1c0336d944e7327 (patch)
tree2fa6d601b12e46b48097eea19d5174c479d715cb /actionview/lib/action_view
parent8a0086609915bc666d08ff416717950da1b6b8da (diff)
downloadrails-86f287e6cfc4181447d936d0d1c0336d944e7327.tar.gz
rails-86f287e6cfc4181447d936d0d1c0336d944e7327.tar.bz2
rails-86f287e6cfc4181447d936d0d1c0336d944e7327.zip
Remove warning of shadowing outer local variable
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
index 8b78bd32e0..56dd7a4390 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -314,8 +314,8 @@ module ActionView
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)