This commit is contained in:
viletyy 2020-12-28 10:26:50 +08:00
parent 6c436dd631
commit 5447d54d30
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class Project < ApplicationRecord
scope :secret_and_visible, -> {joins(:license).where("licenses.is_secret = TRUE OR projects.is_public = TRUE")} scope :secret_and_visible, -> {joins(:license).where("licenses.is_secret = TRUE OR projects.is_public = TRUE")}
delegate :is_secret, to: :license delegate :is_secret, to: :license, allow_nil: true
def self.search_project(search) def self.search_project(search)