Chatwoot/app/views/api/v1/contacts/index.json.jbuilder
Tim Lange 60547b9fb3
Chore: Added tests for contacts_controller (#509)
- Tests for contacts controller
Addresses:  #37
2020-02-17 17:08:29 +05:30

10 lines
284 B
Ruby

json.payload do
json.array! @contacts do |contact|
json.id contact.id
json.name contact.name
json.email contact.email
json.phone_number contact.phone_number
json.thumbnail contact.avatar_url
json.additional_attributes contact.additional_attributes
end
end