13 lines
460 B
Ruby
13 lines
460 B
Ruby
json.data do
|
|
json.meta do
|
|
json.mine_count @conversations_count[:mine_count]
|
|
json.assigned_count @conversations_count[:assigned_count]
|
|
json.unassigned_count @conversations_count[:unassigned_count]
|
|
json.all_count @conversations_count[:all_count]
|
|
end
|
|
json.payload do
|
|
json.array! @conversations do |conversation|
|
|
json.partial! 'api/v1/conversations/partials/conversation.json.jbuilder', conversation: conversation
|
|
end
|
|
end
|
|
end
|