Skip to content

Fix deprecation: render :text is deprecated because it does not actually render…

Jasper Maes requested to merge jlemaes/gitlab-ce:render-text-deprecated into master

What does this MR do?

Fixes deprecation: DEPRECATION WARNING: `render :text` is deprecated because it does not actually render a `text/plain` response. Switch to `render plain: 'plain text'` to render as `text/plain`, `render html: '<strong>HTML</strong>'` to render as `text/html`, or `render body: 'raw'` to match the deprecated behavior and render with the default Content-Type, which is `text/html`. (called from render at /builds/gitlab-org/gitlab-ee/app/controllers/application_controller.rb:116)

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports