method
sanitize_hosts
v7.0.0 -
Show latest stable
- Class:
ActionDispatch::HostAuthorization::Permissions
sanitize_hosts(hosts)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 56
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