mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
change counts
This commit is contained in:
@@ -38,6 +38,9 @@ class Project < ApplicationRecord
|
||||
scope :no_anomory_projects, -> {where("projects.user_id is not null and projects.user_id != ?", 2)}
|
||||
|
||||
|
||||
def self.search_project(search)
|
||||
ransack(name_or_identifier_cont: search)
|
||||
end
|
||||
# 创建者
|
||||
def creator
|
||||
User.find(user_id).full_name
|
||||
|
||||
Reference in New Issue
Block a user