mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
测试projects列表页的筛选
This commit is contained in:
@@ -7,13 +7,13 @@ class ProjectsController < ApplicationController
|
||||
|
||||
def index
|
||||
scope = Projects::ListQuery.call(params)
|
||||
Rails.logger.info("#######_____scope__ids_____######{scope.pluck(:id)}")
|
||||
|
||||
@total_count = scope.size
|
||||
Rails.logger.info("#######______total_count______######{@total_count}")
|
||||
page = params[:page] || 1
|
||||
limit = params[:limit] || 15
|
||||
@projects = scope.page(page).per(limit)
|
||||
projects = scope.page(page).per(limit)
|
||||
Rails.logger.info("#######_____projects_ids______######{projects.pluck(:id)}")
|
||||
@projects = projects
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user