This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.
scheme()
Returns ‘https’ if this is an SSL request and ‘http’ otherwise.
# File actionpack/lib/action_dispatch/http/url.rb, line 10 def scheme ssl? ? 'https' : 'http' end