From 6b26128411a3d5c7c8e3882319464bb01c66a9bf Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 8 Nov 2018 15:56:09 +0200 Subject: [PATCH] Remove unused JSON key --- app/models/whois_record.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/whois_record.rb b/app/models/whois_record.rb index 5be696ff8..43fd7704d 100644 --- a/app/models/whois_record.rb +++ b/app/models/whois_record.rb @@ -33,7 +33,6 @@ class WhoisRecord < ActiveRecord::Base registrant = domain.registrant - @disclosed = [] h[:disclaimer] = disclaimer_text if disclaimer_text.present? h[:name] = domain.name h[:status] = domain.statuses.map { |x| status_map[x] || x } @@ -52,12 +51,10 @@ class WhoisRecord < ActiveRecord::Base end h[:email] = registrant.email - @disclosed << [:email, registrant.email] h[:registrant_changed] = registrant.updated_at.try(:to_s, :iso8601) h[:admin_contacts] = [] domain.admin_contacts.each do |ac| - @disclosed << [:email, ac.email] h[:admin_contacts] << { name: ac.name, email: ac.email, @@ -66,7 +63,6 @@ class WhoisRecord < ActiveRecord::Base end h[:tech_contacts] = [] domain.tech_contacts.each do |tc| - @disclosed << [:email, tc.email] h[:tech_contacts] << { name: tc.name, email: tc.email, @@ -88,7 +84,6 @@ class WhoisRecord < ActiveRecord::Base h[:dnssec_changed] = domain.dnskeys.pluck(:updated_at).max.try(:to_s, :iso8601) rescue nil - h[:disclosed] = @disclosed h end