From 26ef4fce411bdcb94c3b2ed483cc884e2a6aab60 Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Thu, 12 Jun 2014 14:45:37 +0800 Subject: [PATCH] Removed warning actionpack url.rb Before: /Users/Juan/dev/rails/actionpack/lib/action_dispatch/http/url.rb:95: warning: shadowing outer local variable - port After: No warning --- actionpack/lib/action_dispatch/http/url.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb index 75e426d3b0..92aba01b95 100644 --- a/actionpack/lib/action_dispatch/http/url.rb +++ b/actionpack/lib/action_dispatch/http/url.rb @@ -92,8 +92,8 @@ module ActionDispatch end result << host - normalize_port(port, protocol) { |port| - result << ":#{port}" + normalize_port(port, protocol) { |normalized_port| + result << ":#{normalized_port}" } result