mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Remove unused JSON key
This commit is contained in:
parent
4a935a8df3
commit
6b26128411
1 changed files with 0 additions and 5 deletions
|
@ -33,7 +33,6 @@ class WhoisRecord < ActiveRecord::Base
|
||||||
|
|
||||||
registrant = domain.registrant
|
registrant = domain.registrant
|
||||||
|
|
||||||
@disclosed = []
|
|
||||||
h[:disclaimer] = disclaimer_text if disclaimer_text.present?
|
h[:disclaimer] = disclaimer_text if disclaimer_text.present?
|
||||||
h[:name] = domain.name
|
h[:name] = domain.name
|
||||||
h[:status] = domain.statuses.map { |x| status_map[x] || x }
|
h[:status] = domain.statuses.map { |x| status_map[x] || x }
|
||||||
|
@ -52,12 +51,10 @@ class WhoisRecord < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
h[:email] = registrant.email
|
h[:email] = registrant.email
|
||||||
@disclosed << [:email, registrant.email]
|
|
||||||
h[:registrant_changed] = registrant.updated_at.try(:to_s, :iso8601)
|
h[:registrant_changed] = registrant.updated_at.try(:to_s, :iso8601)
|
||||||
|
|
||||||
h[:admin_contacts] = []
|
h[:admin_contacts] = []
|
||||||
domain.admin_contacts.each do |ac|
|
domain.admin_contacts.each do |ac|
|
||||||
@disclosed << [:email, ac.email]
|
|
||||||
h[:admin_contacts] << {
|
h[:admin_contacts] << {
|
||||||
name: ac.name,
|
name: ac.name,
|
||||||
email: ac.email,
|
email: ac.email,
|
||||||
|
@ -66,7 +63,6 @@ class WhoisRecord < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
h[:tech_contacts] = []
|
h[:tech_contacts] = []
|
||||||
domain.tech_contacts.each do |tc|
|
domain.tech_contacts.each do |tc|
|
||||||
@disclosed << [:email, tc.email]
|
|
||||||
h[:tech_contacts] << {
|
h[:tech_contacts] << {
|
||||||
name: tc.name,
|
name: tc.name,
|
||||||
email: tc.email,
|
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[:dnssec_changed] = domain.dnskeys.pluck(:updated_at).max.try(:to_s, :iso8601) rescue nil
|
||||||
|
|
||||||
|
|
||||||
h[:disclosed] = @disclosed
|
|
||||||
h
|
h
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue