|
|
|
@@ -138,7 +138,7 @@ class Project < ApplicationRecord |
|
|
|
delegate :content, to: :project_detail, allow_nil: true |
|
|
|
delegate :name, to: :license, prefix: true, allow_nil: true |
|
|
|
|
|
|
|
validate :validate_sensitive_string |
|
|
|
validate :validate_sensitive_string, on: [:create, :update] |
|
|
|
|
|
|
|
def self.all_visible(user_id=nil) |
|
|
|
user_projects_sql = Project.joins(:owner).where(users: {type: 'User'}).to_sql |
|
|
|
|