Refactor domain transfer

#694
This commit is contained in:
Artur Beljajev 2018-02-19 02:52:35 +02:00
parent 34f1e2be2f
commit 8606cf7b48
4 changed files with 73 additions and 18 deletions

View file

@ -25,7 +25,7 @@ module Repp
if domain
if domain.transfer_code == transfer_code
domain.transfer(new_registrar)
DomainTransfer.request(domain, new_registrar)
successful_domain_transfers << { type: 'domain_transfer' }
else
errors << { title: "#{domain_name} transfer code is wrong" }