Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2016-03-16 04:16:25 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2016-03-16 04:16:25 +0300
commit6a0ea605e8b48deacbb4e93f7bb1d9b9abd2f7f4 (patch)
treeeee4f5ab93815b73748b83f6bc410cd185dd7540 /app/controllers/projects/protected_branches_controller.rb
parent64d0dd1807c75be21a8f5bfe3a74b9230b5b8979 (diff)
Change deprecated usage of rendering without response body
`render nothing: true` has been deprecated. For more information see [pr](https://github.com/rails/rails/pull/20336)
Diffstat (limited to 'app/controllers/projects/protected_branches_controller.rb')
-rw-r--r--app/controllers/projects/protected_branches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/protected_branches_controller.rb b/app/controllers/projects/protected_branches_controller.rb
index e49259c34b6..efa7bf14d0f 100644
--- a/app/controllers/projects/protected_branches_controller.rb
+++ b/app/controllers/projects/protected_branches_controller.rb
@@ -39,7 +39,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
respond_to do |format|
format.html { redirect_to namespace_project_protected_branches_path }
- format.js { render nothing: true }
+ format.js { head :ok }
end
end