- Adding new API endpoints for search - Migrations to add appropriate indexes
8 lines
167 B
Ruby
8 lines
167 B
Ruby
json.payload do
|
|
json.contacts do
|
|
json.array! @result[:contacts] do |contact|
|
|
json.partial! 'contact', formats: [:json], contact: contact
|
|
end
|
|
end
|
|
end
|