From e04a049f32079b3683eb157576fc4d97bad86ec4 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 25 Jan 2018 13:28:22 +0200 Subject: [PATCH] Allow custom contact auth info #660 --- app/models/concerns/contact/transferable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/contact/transferable.rb b/app/models/concerns/contact/transferable.rb index e8f690feb..e8c10db06 100644 --- a/app/models/concerns/contact/transferable.rb +++ b/app/models/concerns/contact/transferable.rb @@ -3,7 +3,7 @@ module Concerns::Contact::Transferable included do validates :auth_info, presence: true - after_initialize :generate_auth_info, if: :new_record? + after_initialize :generate_auth_info, if: 'new_record? && auth_info.blank?' end def transfer(new_registrar)