Flowdock
method

sanitize_hosts

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Permissions
sanitize_hosts(hosts) 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/middleware/host_authorization.rb, line 58
        def sanitize_hosts(hosts)
          Array(hosts).map do |host|
            case host
            when Regexp then sanitize_regexp(host)
            when String then sanitize_string(host)
            else host
            end
          end
        end
Register or log in to add new notes.