debian-mirror-gitlab/lib/gitlab/hook_data/wiki_page_builder.rb

16 lines
290 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
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
end
end
end