Merge branch 'story/110392672-domains-async' into story/113066359-optimization

# Conflicts:
#	app/jobs/regenerate_registrar_whoises_job.rb
#	app/jobs/regenerate_whois_record_job.rb
This commit is contained in:
Vladimir Krylov 2016-02-15 11:43:40 +02:00
commit 53006cb4e9

View file

@ -499,7 +499,8 @@ class Contact < ActiveRecord::Base
end end
def update_related_whois_records def update_related_whois_records
related_domain_descriptions.each{ |x, y| WhoisRecord.find_by(name: x).try(:save) } ids = related_domain_descriptions.keys
RegenerateWhoisRecordJob.enqueue(ids, :name) if ids.present?
end end
end end