method

https_location_for

rails latest stable - Class: ActionDispatch::SSL

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

https_location_for(request)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/ssl.rb, line 134
      def https_location_for(request)
        host = @redirect[:host] || request.host
        port = @redirect[:port] || request.port

        location = "https://#{host}"
        location << ":#{port}" if port != 80 && port != 443
        location << request.fullpath
        location
      end