Merge branch 'story/107699154-whois-open-email' into staging

This commit is contained in:
Vladimir Krylov 2015-11-19 12:07:58 +02:00
commit f5478c0dc7

View file

@ -49,6 +49,7 @@ class WhoisRecord < ActiveRecord::Base
h[:registrant] = domain.registrant.name h[:registrant] = domain.registrant.name
h[:registrant_email] = domain.registrant.email h[:registrant_email] = domain.registrant.email
@disclosed << domain.registrant.email
h[:changed] = domain.registrant.updated_at.try(:to_s, :iso8601) h[:changed] = domain.registrant.updated_at.try(:to_s, :iso8601)
h[:admin_contacts] = [] h[:admin_contacts] = []
@ -84,7 +85,7 @@ 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[:disclosed] = @disclosed # later we can replace
h h
end end