2023-04-03 18:23:49 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-05-25 20:17:37 +02:00
|
|
|
json.extract! child, :id, :first_name, :last_name, :email, :birthday, :phone, :user_id, :validated_at
|
2023-05-24 19:56:48 +02:00
|
|
|
json.supporting_document_files_attributes child.supporting_document_files do |f|
|
|
|
|
json.id f.id
|
|
|
|
json.supportable_id f.supportable_id
|
|
|
|
json.supportable_type f.supportable_type
|
|
|
|
json.supporting_document_type_id f.supporting_document_type_id
|
|
|
|
json.attachment f.attachment.file.filename
|
|
|
|
json.attachment_name f.attachment_identifier
|
2023-05-25 20:17:37 +02:00
|
|
|
json.attachment_url "/api/supporting_document_files/#{f.id}/download"
|
2023-05-24 19:56:48 +02:00
|
|
|
end
|