mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
22 lines
326 B
Ruby
22 lines
326 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PersonalSnippet < Snippet
|
|
self.allow_legacy_sti_class = true
|
|
|
|
include WithUploads
|
|
|
|
validates :organization_id, presence: true
|
|
|
|
def parent_user
|
|
author
|
|
end
|
|
|
|
def skip_project_check?
|
|
true
|
|
end
|
|
|
|
def uploads_sharding_key
|
|
{ organization_id: organization_id }
|
|
end
|
|
end
|