change counts

This commit is contained in:
sylor_huang@126.com
2020-07-03 15:14:25 +08:00
parent 04f98f1c10
commit 281889ebae
7 changed files with 24 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ class Projects::ListQuery < ApplicationQuery
end
def call
q = Project.visible.ransack(name_or_identifier_cont: params[:search])
q = Project.visible.search_project(params[:search])
scope = q.result(distinct: true)
.includes(:project_category, :project_language, :repository, owner: :user_extension)