Commit 35fd7e6c authored by Toon Claes's avatar Toon Claes

Avoid including the MarkupHelper

parent 66c8756e
...@@ -241,4 +241,6 @@ module MarkupHelper ...@@ -241,4 +241,6 @@ module MarkupHelper
Banzai.post_process(html, context) Banzai.post_process(html, context)
end end
extend self
end end
require 'securerandom' require 'securerandom'
class Repository class Repository
include MarkupHelper
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
include RepositoryMirroring include RepositoryMirroring
...@@ -530,7 +529,7 @@ class Repository ...@@ -530,7 +529,7 @@ class Repository
end end
def rendered_readme def rendered_readme
markup_unsafe(readme.name, readme.data, project: project) if readme MarkupHelper.markup_unsafe(readme.name, readme.data, project: project) if readme
end end
cache_method :rendered_readme cache_method :rendered_readme
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment