debian-mirror-gitlab/app/models/project_wiki.rb

18 lines
488 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2020-05-24 23:13:21 +05:30
class ProjectWiki < Wiki
alias_method :project, :container
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
# Project wikis are tied to the main project storage
delegate :storage, :repository_storage, :hashed_storage?, to: :container
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
override :disk_path
def disk_path(*args, &block)
container.disk_path + '.wiki'
2015-11-26 14:37:03 +05:30
end
2014-09-02 18:07:02 +05:30
end
2019-12-04 20:38:33 +05:30
2020-05-24 23:13:21 +05:30
# TODO: Remove this once we implement ES support for group wikis.
# https://gitlab.com/gitlab-org/gitlab/-/issues/207889
2019-12-04 20:38:33 +05:30
ProjectWiki.prepend_if_ee('EE::ProjectWiki')