better error on validating glue IP address

This commit is contained in:
Vladimir Krylov 2016-06-15 11:36:57 +03:00
parent 999c161c8e
commit 67e32f3a36
3 changed files with 2 additions and 3 deletions

View file

@ -482,7 +482,6 @@ class Domain < ActiveRecord::Base
errors.add(:nameservers, :invalid) if errors[:nameservers].blank?
ns.errors.add(:ipv4, :blank)
ns.errors.add(:ipv6, :blank)
end
end

View file

@ -32,7 +32,7 @@ class Nameserver < ActiveRecord::Base
[:ipv4, :invalid, { value: { obj: 'hostAddr', val: ipv4 } }],
[:ipv6, :invalid, { value: { obj: 'hostAddr', val: ipv6 } }]
],
'2306' => [
'2003' => [
[:ipv4, :blank]
]
}