mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 09:45:57 +08:00
测试搜索的问题
This commit is contained in:
@@ -11,9 +11,11 @@ class ProjectsController < ApplicationController
|
||||
scope = Projects::ListQuery.call(params.merge(is_admin: is_admin, user_id: current_user.try(:id)))
|
||||
|
||||
@total_count = scope.size
|
||||
projects = paginate(scope)
|
||||
Rails.logger.info("########_________scope_ids_________________#########{scope.pluck(:id)}")
|
||||
Rails.logger.info("########_________projects_ids_________________#########{projects.pluck(:id)}")
|
||||
|
||||
@projects = paginate(scope)
|
||||
@projects =projects
|
||||
# @projects = scope.page(params[:page]).limit(params[:limit] || 15)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user