bd445216e9
fixes the warning: Rendering actions with '.' in the name is deprecated
10 lines
251 B
Ruby
10 lines
251 B
Ruby
json.meta do
|
|
json.count @contacts_count
|
|
json.current_page @current_page
|
|
end
|
|
|
|
json.payload do
|
|
json.array! @contacts do |contact|
|
|
json.partial! 'api/v1/models/contact', formats: [:json], resource: contact, with_contact_inboxes: true
|
|
end
|
|
end
|