|
|
@ -94,7 +94,7 @@ class MemosController < ApplicationController
|
|
|
|
@reply_pages = Paginator.new @reply_count, pre_count, page
|
|
|
|
@reply_pages = Paginator.new @reply_count, pre_count, page
|
|
|
|
@replies = @memo.children.
|
|
|
|
@replies = @memo.children.
|
|
|
|
includes(:author, :attachments).
|
|
|
|
includes(:author, :attachments).
|
|
|
|
reorder("#{Memo.table_name}.created_at ASC").
|
|
|
|
reorder("#{Memo.table_name}.created_at DESC").
|
|
|
|
limit(@reply_pages.per_page).
|
|
|
|
limit(@reply_pages.per_page).
|
|
|
|
offset(@reply_pages.offset).
|
|
|
|
offset(@reply_pages.offset).
|
|
|
|
all
|
|
|
|
all
|
|
|
|