From 2951a4da3f25b4b4e19efb1d864946549a87628d Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Wed, 4 Jun 2025 14:15:15 +0300 Subject: [PATCH] fixed callback --- app/models/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index 393456168..ceb1881f2 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -85,7 +85,7 @@ class Contact < ApplicationRecord country_code: country_code) }, mapping: [%w[ident code], %w[ident_type type], %w[ident_country_code country_code]] - after_save :update_related_whois_records + after_commit :update_related_whois_records before_validation :clear_address_modifications, if: -> { !self.class.address_processing? } # TODO: remove after testing