5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 12:46:08 +00:00
panel/config/initializers/validates_hostname.rb

7 lines
226 B
Ruby

# frozen_string_literal: true
# Agrega el subdominio .local a menos que estemos en producción.
#
# TODO: Permitir TLDs que no sean de ICANN aquí.
PAK::ValidatesHostname::ALLOWED_TLDS << 'local' unless Rails.env.production?