Method: ActionDispatch::Http::URL#scheme
- Defined in:
- lib/action_dispatch/http/url.rb
#scheme ⇒ Object
Returns ‘https’ if this is an SSL request and ‘http’ otherwise.
10 11 12 |
# File 'lib/action_dispatch/http/url.rb', line 10 def scheme ssl? ? 'https' : 'http' end |