From 506f3f991a133aa17fa6be4d300f2b09edcb7679 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Sat, 22 Sep 2018 13:06:38 -0500 Subject: [PATCH] Convert `render :nothing => true` to `head :ok` Co-Authored-By: Dan Rice --- app/controllers/contexts_controller.rb | 2 +- app/controllers/projects_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/contexts_controller.rb b/app/controllers/contexts_controller.rb index 0bc537a9..a6602e8a 100644 --- a/app/controllers/contexts_controller.rb +++ b/app/controllers/contexts_controller.rb @@ -151,7 +151,7 @@ class ContextsController < ApplicationController def order context_ids = params["container_context"] @projects = current_user.contexts.update_positions( context_ids ) - render :nothing => true + head :ok rescue notify :error, $! redirect_to :action => 'index' diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index d7c12454..dc33ea3b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -281,7 +281,7 @@ class ProjectsController < ApplicationController def order project_ids = params["container_project"] @projects = current_user.projects.update_positions( project_ids ) - render :nothing => true + head :ok rescue notify :error, $! redirect_to :action => 'index'