lib/url_for.rb
# if full URL is requested for http and we've been told to use a
# non-ssl host override, then use it
if full URL is requested for http and we've been told to use a
non-ssl host override, then use it
if full URL is requested for http and we ' ve been told to use a non - ssl host override then use it
def url_for_with_non_ssl_host(options)
        if !options[:only_path] && !SslRequirement.non_ssl_host.nil?
          if !(/^https/ =~ (options[:protocol] || @request.try(:protocol)))
            options.merge! :host => SslRequirement.non_ssl_host
          end
        end
        url_for_without_non_ssl_host(options)
      end
def url_for_with_non_ssl_host ( options ) if ! options [ :only_path ] && ! SslRequirement . non_ssl_host . nil? if ! ( / ^https / =~ ( options [ :protocol ] || @request . try ( :protocol ) ) ) options . merge! :host => SslRequirement . non_ssl_host end end url_for_without_non_ssl_host ( options ) end
if full URL is requested for http and we've been told to use a
non-ssl host override, then use it
if full URL is requested for http and we ' ve been told to use a non - ssl host override then use it
options