message order

dev_hs
jingquan huang 5 years ago
parent b089dd25af
commit 543dc3443f

@ -52,7 +52,7 @@ class MessagesController < ApplicationController
@messages = @messages.visible
end
@messages = @messages.order("created_on desc")
@messages = @messages.order("messages.created_on desc")
@messages = @messages.page(@page).per(@page_size)
end

Loading…
Cancel
Save