From 3862f857f78bfdf792d53c51fad8009c3f9e7c81 Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Tue, 5 Aug 2014 14:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BD=93=E5=B8=96=E5=AD=90?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=9D=A1=E4=BB=B6=E4=B8=BA=E7=A9=BA=E6=8E=92?= =?UTF-8?q?=E5=88=97=E6=AC=A1=E5=BA=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/memos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/memos_controller.rb b/app/controllers/memos_controller.rb index d7510c385..1e537ff75 100644 --- a/app/controllers/memos_controller.rb +++ b/app/controllers/memos_controller.rb @@ -84,7 +84,7 @@ class MemosController < ApplicationController @reply_pages = Paginator.new @reply_count, pre_count, page @replies = @memo.children. includes(:author, :attachments). - reorder("#{Memo.table_name}.created_at ASC"). + reorder("#{Memo.table_name}.created_at DESC"). limit(@reply_pages.per_page). offset(@reply_pages.offset). all