Commit 273c5c12 authored by Jasper Maes's avatar Jasper Maes

render :nothing option is deprecated, Use head method to respond with empty response body.

parent ee5be26d
......@@ -93,7 +93,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController
end
def render_ok
render status: :ok, nothing: true
head :ok
end
def render_software_license_policy
......
---
title: render :nothing option is deprecated, Use head method to respond with empty
response body.
merge_request: 8560
author: Jasper Maes
type: other
......@@ -13,7 +13,7 @@ describe EE::ProjectUnauthorized do
describe '#project_unauthorized_proc' do
controller(::Projects::ApplicationController) do
def show
render nothing: true
head :ok
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment