bd445216e9
fixes the warning: Rendering actions with '.' in the name is deprecated
13 lines
464 B
Ruby
13 lines
464 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', formats: [:json], conversation: conversation
|
|
end
|
|
end
|
|
end
|