Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
273c5c12
Commit
273c5c12
authored
Nov 22, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
render :nothing option is deprecated, Use head method to respond with empty response body.
parent
ee5be26d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/controllers/projects/managed_licenses_controller.rb
ee/app/controllers/projects/managed_licenses_controller.rb
+1
-1
ee/changelogs/unreleased/rails5-ee-deprecation-render-nothing.yml
...elogs/unreleased/rails5-ee-deprecation-render-nothing.yml
+6
-0
ee/spec/controllers/concerns/ee/project_unauthorized_spec.rb
ee/spec/controllers/concerns/ee/project_unauthorized_spec.rb
+1
-1
No files found.
ee/app/controllers/projects/managed_licenses_controller.rb
View file @
273c5c12
...
...
@@ -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
...
...
ee/changelogs/unreleased/rails5-ee-deprecation-render-nothing.yml
0 → 100644
View file @
273c5c12
---
title
:
render :nothing option is deprecated, Use head method to respond with empty
response body.
merge_request
:
8560
author
:
Jasper Maes
type
:
other
ee/spec/controllers/concerns/ee/project_unauthorized_spec.rb
View file @
273c5c12
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment