diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-11-17 05:41:47 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-11-17 05:41:47 +0000 |
commit | 6d0e5eaf06c6f285201bdbb7948c31281f15f8c5 (patch) | |
tree | d30dcbd470f4a87cfc32e6d70cf357571a25e006 /actionpack/lib/action_controller/request.rb | |
parent | c07eae4d40b3450215e3aefb876dd5d983fc24bf (diff) | |
download | rails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.tar.gz rails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.tar.bz2 rails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.zip |
memoize host with port and refactor the tests which depend on it changing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/request.rb')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 8cfb6d3354..2926ead13a 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -166,7 +166,7 @@ module ActionController # Returns a host:port string for this request, such as example.com or # example.com:8080. def host_with_port - host + port_string + @host_with_port ||= host + port_string end # Returns the port number of this request as an integer. |