Skip to content

Replace deprecated render text

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

What does this MR do?

Fixes deprecation

`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/jlemaes/gitlab-ee/app/controllers/application_controller.rb:113)

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports

Loading