mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
new contact honors new format
This commit is contained in:
parent
ede71f8e61
commit
3fb9664e5b
9 changed files with 133 additions and 113 deletions
|
@ -448,9 +448,8 @@ class Epp::Domain < Domain
|
|||
|
||||
def transfer_contact(contact_id, registrar_id)
|
||||
oc = Contact.find(contact_id) # n+1 workaround
|
||||
oc.code_overwrite_allowed = true
|
||||
oc.generate_code
|
||||
oc.registrar_id = registrar_id
|
||||
oc.generate_new_code!
|
||||
oc.save!
|
||||
oc
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue