aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-31 13:18:51 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-31 13:24:17 -0300
commitddb0d4bec16aea562dd155577d891e83fa066410 (patch)
treed88d08e091a9f0387c7c15cb833bf32d144121ef
parent0b859dfefe4f267eb86fa6194fa556caae5cb44c (diff)
downloadrails-ddb0d4bec16aea562dd155577d891e83fa066410.tar.gz
rails-ddb0d4bec16aea562dd155577d891e83fa066410.tar.bz2
rails-ddb0d4bec16aea562dd155577d891e83fa066410.zip
Realign assignments :scissors:
-rw-r--r--actionpack/lib/action_dispatch/http/url.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb
index a7dbceed67..6b8dcaf497 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -92,13 +92,13 @@ module ActionDispatch
def build_host_url(host, port, protocol, options, path)
if match = host.match(HOST_REGEXP)
- protocol ||= match[1] unless protocol == false
- host = match[2]
- port = match[3] unless options.key? :port
+ protocol ||= match[1] unless protocol == false
+ host = match[2]
+ port = match[3] unless options.key? :port
end
- protocol = normalize_protocol protocol
- host = normalize_host(host, options)
+ protocol = normalize_protocol protocol
+ host = normalize_host(host, options)
result = protocol.dup