Skip to content
Snippets Groups Projects

Fix ProjectCacheWorker for plain READMEs

Merged Toon Claes requested to merge tc-fix-broken-plain-readme into master
All threads resolved!
2 files
+ 15
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • abc82a25
    Fix ProjectCacheWorker for plain READMEs · abc82a25
    Toon Claes authored
    The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails
    context. So include the ActionView helpers so the `content_tag` method is
    available.
require 'nokogiri'
module MarkupHelper
include ActionView::Helpers::TagHelper
include ActionView::Context
def plain?(filename)
Gitlab::MarkupHelper.plain?(filename)
end
Loading