debian-mirror-gitlab/lib/gitlab/hook_data/wiki_page_builder.rb
2020-04-22 19:07:51 +05:30

21 lines
368 B
Ruby

# frozen_string_literal: true
module Gitlab
module HookData
class WikiPageBuilder < BaseBuilder
alias_method :wiki_page, :object
def build
wiki_page
.attributes
.merge(
'content' => absolute_image_urls(wiki_page.content)
)
end
def uploads_prefix
''
end
end
end
end