Method: ActionDispatch::Routing::RouteSet#url_for_with_non_ssl_host
- Defined in:
- lib/url_for.rb
#url_for_with_non_ssl_host(options) ⇒ Object
if full URL is requested for http and we’ve been told to use a non-ssl host override, then use it
38 39 40 41 42 43 44 45 |
# File 'lib/url_for.rb', line 38 def url_for_with_non_ssl_host() if ![:only_path] && !SslRequirement.non_ssl_host.nil? if !(/^https/ =~ ([:protocol] || @request.try(:protocol))) .merge! :host => SslRequirement.non_ssl_host end end url_for_without_non_ssl_host() end |