Convert render :nothing => true to head :ok

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
Matt Rogers 2018-09-22 13:06:38 -05:00
parent 17f704a074
commit 506f3f991a
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

@ -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'