mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Change blocked domain error message #2564
This commit is contained in:
parent
0ea07de2d1
commit
a70273a3b9
4 changed files with 8 additions and 5 deletions
|
@ -28,7 +28,7 @@ class Epp::Domain < Domain
|
|||
|
||||
after_destroy :unlink_contacts
|
||||
def unlink_contacts
|
||||
contacts.each do |c|
|
||||
contacts.each do |c|
|
||||
c.domains_present = false
|
||||
c.save(validate: false)
|
||||
end
|
||||
|
@ -104,6 +104,9 @@ class Epp::Domain < Domain
|
|||
[:base, :key_data_not_allowed],
|
||||
[:period, :not_a_number],
|
||||
[:period, :not_an_integer]
|
||||
],
|
||||
'2308' => [
|
||||
[:base, :domain_name_blocked, { value: { obj: 'name', val: name_dirty } }]
|
||||
]
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue