Skip to content

Fix ProjectCacheWorker for plain READMEs

Toon Claes requested to merge tc-fix-broken-plain-readme into master

What does this MR do?

The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails context. So include the ActionView helpers so the content_tag method is available.

Are there points in the code the reviewer needs to double check?

I added include ActionView::Context because, I ran into this error:

NoMethodError: undefined method 'output_buffer=' for

See http://stackoverflow.com/a/7562194/89376

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Fixes gitlab-org/gitlab-ce#32540

Edited by Toon Claes

Merge request reports