FIX 版本库兼容euducoder平台数据

This commit is contained in:
Jasder
2020-10-22 18:00:31 +08:00
parent 1feb238e80
commit 58f8d60646
12 changed files with 240 additions and 111 deletions

View File

@@ -10,8 +10,9 @@ class ProjectsController < ApplicationController
def index
scope = Projects::ListQuery.call(params)
@projects = kaminari_paginate(scope)
@total_count = @projects.total_count
# @projects = kaminari_paginate(scope)
@projects = paginate scope.includes(:project_category, :project_language, :repository, :project_educoder, owner: :user_extension)
@total_count = scope.size
end
def create