Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

331 B
Raw Blame
json.meta do
  json.total_count @notes.total_count
  json.page @notes.current_page
end
json.payload do
  json.array! @notes do |note|
    json.partial! 'api/v1/models/note', formats: [:json], resource: note
    json.contact do
      json.partial! 'api/v1/models/contact', formats: [:json], resource: note.contact
    end
  end
end