diff --git a/app/models/contact.rb b/app/models/contact.rb index 2ee45e716..c5a86e89f 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -502,7 +502,8 @@ class Contact < ApplicationRecord 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? + ignored_columns = %w[updated_at created_at statuses status_notes] + return if saved_changes.slice(*(self.class.column_names - ignored_columns)).empty? names = related_domain_descriptions.keys UpdateWhoisRecordJob.enqueue(names, 'domain') if names.present? diff --git a/config/environments/test.rb b/config/environments/test.rb index 784b48f42..c55e59e31 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,6 +1,6 @@ Rails.application.configure do - $VERBOSE = nil + # $VERBOSE = nil # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's