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
|
||||
log = HashWithIndifferentAccess.new
|
||||
log[:admin_contacts] = admin_contacts.map(&:attributes)
|
||||
log[:tech_contacts] = tech_contacts.map(&:attributes)
|
||||
log[:nameservers] = nameservers.map(&:attributes)
|
||||
log[:registrant] = [registrant.try(:attributes)]
|
||||
log[:domain_statuses] = domain_statuses.map(&:attributes)
|
||||
log[:admin_contacts] = admin_contact_ids
|
||||
log[:tech_contacts] = tech_contact_ids
|
||||
log[:nameservers] = nameserver_ids
|
||||
log[:registrant] = [registrant_id]
|
||||
log[:domain_statuses] = domain_status_ids
|
||||
log
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue