instance method interpret_uri

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18 Private

Available 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

path req
Source
# File actionpack/lib/action_controller/integration.rb, line 233
        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 233 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Integration::Session

Type at least 2 characters to search.

↑↓ navigate · open · esc close