Story#117612931 - contact touch is not regenerating all whoises once and once again

This commit is contained in:
Vladimir Krylov 2016-04-20 16:04:29 +03:00
parent 3dfe64995f
commit 10b7ce3eea

View file

@ -551,6 +551,9 @@ class Contact < ActiveRecord::Base
end
def update_related_whois_records
# not doing anything if no real changes
return if changes.slice(*(self.class.column_names - ["updated_at", "created_at", "statuses", "status_notes"])).empty?
names = related_domain_descriptions.keys
UpdateWhoisRecordJob.enqueue(names, :domain) if names.present?
end