Generate contact code manually

Generate contact's code explicitly on contact:create epp request and domain transfer. Remove callback.
This commit is contained in:
Artur Beljajev 2016-12-12 06:27:01 +02:00
parent cefd310cc0
commit 183c2bb82c
4 changed files with 18 additions and 21 deletions

View file

@ -646,7 +646,7 @@ class Epp::Domain < Domain
oc.code = nil
oc.registrar_id = registrar_id
oc.copy_from_id = c.id
oc.prefix_code
oc.generate_code
oc.domain_transfer = true
oc.save!(validate: false)
oc