gitlab-org--gitlab-foss/app/models/project_wiki.rb

17 lines
488 B
Ruby

# frozen_string_literal: true
class ProjectWiki < Wiki
alias_method :project, :container
# Project wikis are tied to the main project storage
delegate :storage, :repository_storage, :hashed_storage?, to: :container
override :disk_path
def disk_path(*args, &block)
container.disk_path + '.wiki'
end
end
# TODO: Remove this once we implement ES support for group wikis.
# https://gitlab.com/gitlab-org/gitlab/-/issues/207889
ProjectWiki.prepend_if_ee('EE::ProjectWiki')