mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
13 lines
496 B
Ruby
13 lines
496 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.extract! child, :id, :first_name, :last_name, :email, :birthday, :phone, :user_id
|
|
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
|
|
json.attachment_url f.attachment_url
|
|
end
|