From 0abf5deacaf4d3cd8ff54e26e27250054e6b86d6 Mon Sep 17 00:00:00 2001 From: yystopf Date: Mon, 23 Mar 2026 16:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=92=8C=E6=8E=A7=E5=88=B6=E5=99=A8=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/resident_experts_controller.rb | 2 +- .../{current.json.builder => current.json.jbuilder} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename app/views/api/v1/resident_experts/{current.json.builder => current.json.jbuilder} (100%) diff --git a/app/controllers/api/v1/resident_experts_controller.rb b/app/controllers/api/v1/resident_experts_controller.rb index 05aa0d89f..b9ff8ab04 100644 --- a/app/controllers/api/v1/resident_experts_controller.rb +++ b/app/controllers/api/v1/resident_experts_controller.rb @@ -6,7 +6,7 @@ class Api::V1::ResidentExpertsController < Api::V1::BaseController @resident_expert_category_list = @resident_experts.group(:expert_category).count @resident_expert_memos_rank_list = @resident_experts.order("users.memos_count desc").limit(5) @resident_experts = @resident_experts.order(created_at: :desc) - @resident_experts = paginate(@resident_experts) + @resident_experts = kaminari_paginate(@resident_experts) end def current diff --git a/app/views/api/v1/resident_experts/current.json.builder b/app/views/api/v1/resident_experts/current.json.jbuilder similarity index 100% rename from app/views/api/v1/resident_experts/current.json.builder rename to app/views/api/v1/resident_experts/current.json.jbuilder