diff options
author | Toon Claes <toon@gitlab.com> | 2017-04-26 23:16:36 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-04-27 13:22:18 +0200 |
commit | 35fd7e6c530fc4f6b0a11814652962ffb2beedb5 (patch) | |
tree | 9d5faad82916d10718065a7b3fc9025b333bc62d /app/models/repository.rb | |
parent | 66c8756e449b4a541abb6eb99ca8349ce91670d1 (diff) | |
download | gitlab-ce-35fd7e6c530fc4f6b0a11814652962ffb2beedb5.tar.gz |
Avoid including the MarkupHelper
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index d12c7d4eb27..e74edb8e6f7 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1,7 +1,6 @@ require 'securerandom' class Repository - include MarkupHelper include Gitlab::ShellAdapter include RepositoryMirroring @@ -530,7 +529,7 @@ class Repository end 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 cache_method :rendered_readme |