add paginate to private message detail api

dev_hjm^2
p31729568 6 years ago
parent 584dddb63e
commit 12ac9f6ee8

@ -7,7 +7,7 @@ class Users::PrivateMessageDetailsController < Users::BaseController
messages = observed_user.private_messages.without_deleted.where(target: target_user)
@count = messages.count
@messages = messages.order(send_time: :desc).includes(sender: :user_extension)
@messages = paginate messages.order(send_time: :desc).includes(sender: :user_extension)
end
private

Loading…
Cancel
Save