This commit is contained in:
2026-03-22 19:52:14 +09:00
parent 76f8e6875e
commit 63c1dd197c
4 changed files with 61 additions and 43 deletions
@@ -6,7 +6,7 @@ class TheatreCommentsController < ApplicationController
comments = TheatreComment
.where(theatre_id: params[:theatre_id])
.where('no > ?', no_gt)
.order(:no)
.order(no: :desc)
render json: comments.as_json(include: { user: { only: [:id, :name] } })
end