mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Punycode validations
This commit is contained in:
parent
51091679c4
commit
c07dffe7cc
3 changed files with 19 additions and 6 deletions
|
@ -9,6 +9,7 @@ class Domain < ActiveRecord::Base
|
|||
belongs_to :admin_contact, class_name: 'Contact'
|
||||
|
||||
validates :name, domain_name: true
|
||||
validates :name_puny, domain_name: true
|
||||
|
||||
def name=(value)
|
||||
value.strip!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue