Merge branch 'story/117612931-contact-whois' into staging

This commit is contained in:
Vladimir Krylov 2016-04-20 16:04:46 +03:00
commit be99881c11

View file

@ -560,6 +560,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