Flowdock
method

normalize_port

Importance_0
normalize_port(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 136
        def normalize_port(options)
          return nil if options[:port].nil? || options[:port] == false

          case options[:protocol]
          when "//"
            options[:port]
          when "https://"
            options[:port].to_i == 443 ? nil : options[:port]
          else
            options[:port].to_i == 80 ? nil : options[:port]
          end
        end
Register or log in to add new notes.