Flowdock
method

normalize_protocol

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActionDispatch::Http::URL
normalize_protocol(options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/url.rb, line 107
        def normalize_protocol(options)
          case options[:protocol]
          when nil
            "http://"
          when false, "//"
            "//"
          when PROTOCOL_REGEXP
            "#{$1}://"
          else
            raise ArgumentError, "Invalid :protocol option: #{options[:protocol].inspect}"
          end
        end
Register or log in to add new notes.