instance method
reset_host_memos
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
reset_host_memos()
The host, and the port derived from it, are memoized on the request once read. Forget them so that a test can change the host afterwards.
Source
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 76
def reset_host_memos
@raw_host_with_port = @host = @port = nil
end
Defined in actionpack/lib/action_dispatch/testing/test_request.rb line 76
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::TestRequest