mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
修改like方法
This commit is contained in:
@@ -9,16 +9,8 @@ class ProjectsController < ApplicationController
|
||||
is_admin = current_user && current_user&.admin?
|
||||
|
||||
scope = Projects::ListQuery.call(params.merge(is_admin: is_admin, user_id: current_user.try(:id)))
|
||||
|
||||
@total_count = scope.size
|
||||
other_projects = scope.page(params[:page]).limit(params[:limit] || 15)
|
||||
projects = paginate(scope)
|
||||
Rails.logger.info("##########____other_projects_projects_as_json__________#############{other_projects.as_json}")
|
||||
|
||||
Rails.logger.info("##########____projects_as_json__________#############{projects.as_json}")
|
||||
@projects = projects
|
||||
Rails.logger.info("##########___@projects__________#############{@projects.as_json}")
|
||||
|
||||
@projects = paginate(scope)
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user