19ab0fe108
* Chore: Enable Users to create multiple accounts Addresses: #402 - migrations to split roles and other attributes from users table - make changes in code to accommodate this change Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
12 lines
398 B
Ruby
12 lines
398 B
Ruby
json.data do
|
|
json.meta do
|
|
json.mine_count @conversations_count[:mine_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
|