instance method
interpret_uri
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
interpret_uri(path)
Tailors the session based on the given URI, setting the HTTPS value and the hostname.
Parameters
-
pathreq
Source
# File actionpack/lib/action_controller/integration.rb, line 250
def interpret_uri(path)
location = URI.parse(path)
https! URI::HTTPS === location if location.scheme
host! location.host if location.host
location.query ? "#{location.path}?#{location.query}" : location.path
end
Defined in actionpack/lib/action_controller/integration.rb line 250
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Integration::Session