diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2016-03-16 03:16:25 +0200 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2016-03-16 03:16:25 +0200 |
commit | 6a0ea605e8b48deacbb4e93f7bb1d9b9abd2f7f4 (patch) | |
tree | eee4f5ab93815b73748b83f6bc410cd185dd7540 /app/controllers/dashboard | |
parent | 64d0dd1807c75be21a8f5bfe3a74b9230b5b8979 (diff) | |
download | gitlab-ce-6a0ea605e8b48deacbb4e93f7bb1d9b9abd2f7f4.tar.gz |
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/dashboard')
-rw-r--r-- | app/controllers/dashboard/todos_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb index 43cf8fa71af..d8ba51294cf 100644 --- a/app/controllers/dashboard/todos_controller.rb +++ b/app/controllers/dashboard/todos_controller.rb @@ -10,7 +10,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController respond_to do |format| format.html { redirect_to dashboard_todos_path, notice: 'Todo was successfully marked as done.' } - format.js { render nothing: true } + format.js { head :ok } end end @@ -19,7 +19,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController respond_to do |format| format.html { redirect_to dashboard_todos_path, notice: 'All todos were marked as done.' } - format.js { render nothing: true } + format.js { head :ok } end end |