7ec8af5017
Enables frozen string for the following: * lib/gitlab/hook_data/**/*.rb * lib/gitlab/i18n/**/*.rb * lib/gitlab/import/**/*.rb * lib/gitlab/import_export/**/*.rb * lib/gitlab/kubernetes/**/*.rb * lib/gitlab/legacy_github_import/**/*.rb * lib/gitlab/manifest_import/**/*.rb * lib/gitlab/metrics/**/*.rb * lib/gitlab/middleware/**/*.rb Partially addresses gitlab-org/gitlab-ce#47424.
17 lines
321 B
Ruby
17 lines
321 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
|
|
end
|
|
end
|
|
end
|