2018-03-26 05:16:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-22 08:09:29 -04:00
|
|
|
class ProjectWiki < Wiki
|
|
|
|
alias_method :project, :container
|
2014-04-09 07:35:26 -04:00
|
|
|
|
2020-04-22 08:09:29 -04:00
|
|
|
# Project wikis are tied to the main project storage
|
|
|
|
delegate :storage, :repository_storage, :hashed_storage?, to: :container
|
2014-04-09 07:35:26 -04:00
|
|
|
|
2020-04-22 08:09:29 -04:00
|
|
|
override :disk_path
|
|
|
|
def disk_path(*args, &block)
|
|
|
|
container.disk_path + '.wiki'
|
2015-11-15 14:32:28 -05:00
|
|
|
end
|
2014-04-09 07:35:26 -04:00
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
2020-04-22 08:09:29 -04:00
|
|
|
# TODO: Remove this once we implement ES support for group wikis.
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/207889
|
2019-09-13 09:26:31 -04:00
|
|
|
ProjectWiki.prepend_if_ee('EE::ProjectWiki')
|