bd445216e9
fixes the warning: Rendering actions with '.' in the name is deprecated
9 lines
264 B
Ruby
9 lines
264 B
Ruby
json.payload do
|
|
json.contact do
|
|
json.partial! 'api/v1/models/contact', formats: [:json], resource: @contact, with_contact_inboxes: true
|
|
end
|
|
json.contact_inbox do
|
|
json.inbox @contact_inbox&.inbox
|
|
json.source_id @contact_inbox&.source_id
|
|
end
|
|
end
|