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