diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2014-06-12 14:45:37 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2014-06-12 14:45:37 +0800 |
commit | 26ef4fce411bdcb94c3b2ed483cc884e2a6aab60 (patch) | |
tree | c14d7dcbe3928dc9b4e6642791cf192f0cbd7795 /actionpack/lib/action_dispatch/http | |
parent | 5f9a2beffd1e8e3507468c70f74fe0da9cc9c5f7 (diff) | |
download | rails-26ef4fce411bdcb94c3b2ed483cc884e2a6aab60.tar.gz rails-26ef4fce411bdcb94c3b2ed483cc884e2a6aab60.tar.bz2 rails-26ef4fce411bdcb94c3b2ed483cc884e2a6aab60.zip |
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
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/url.rb | 4 |
1 files 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 |