Poder validar localmente los .local
This commit is contained in:
parent
dcaac06fa4
commit
a1fde94378
1 changed files with 6 additions and 0 deletions
6
config/initializers/validates_hostname.rb
Normal file
6
config/initializers/validates_hostname.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# 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?
|
Loading…
Reference in a new issue