mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Stroy#105839906 domain log saves under children_log only ids, not whole objects
This commit is contained in:
parent
3f17f728eb
commit
01a9ade5c0
1 changed files with 5 additions and 5 deletions
|
@ -753,11 +753,11 @@ class Domain < ActiveRecord::Base
|
||||||
|
|
||||||
def children_log
|
def children_log
|
||||||
log = HashWithIndifferentAccess.new
|
log = HashWithIndifferentAccess.new
|
||||||
log[:admin_contacts] = admin_contacts.map(&:attributes)
|
log[:admin_contacts] = admin_contact_ids
|
||||||
log[:tech_contacts] = tech_contacts.map(&:attributes)
|
log[:tech_contacts] = tech_contact_ids
|
||||||
log[:nameservers] = nameservers.map(&:attributes)
|
log[:nameservers] = nameserver_ids
|
||||||
log[:registrant] = [registrant.try(:attributes)]
|
log[:registrant] = [registrant_id]
|
||||||
log[:domain_statuses] = domain_statuses.map(&:attributes)
|
log[:domain_statuses] = domain_status_ids
|
||||||
log
|
log
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue