Merge pull request #89 from internetee/story/110392672-domains-async

Story/110392672 domains async
This commit is contained in:
Timo Võhmar 2016-02-25 11:17:25 +02:00
commit e016ec4767
3 changed files with 5 additions and 4 deletions

View file

@ -499,7 +499,8 @@ class Contact < ActiveRecord::Base
end
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