mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Convert render :nothing => true to head :ok
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
17f704a074
commit
506f3f991a
2 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ class ContextsController < ApplicationController
|
||||||
def order
|
def order
|
||||||
context_ids = params["container_context"]
|
context_ids = params["container_context"]
|
||||||
@projects = current_user.contexts.update_positions( context_ids )
|
@projects = current_user.contexts.update_positions( context_ids )
|
||||||
render :nothing => true
|
head :ok
|
||||||
rescue
|
rescue
|
||||||
notify :error, $!
|
notify :error, $!
|
||||||
redirect_to :action => 'index'
|
redirect_to :action => 'index'
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ class ProjectsController < ApplicationController
|
||||||
def order
|
def order
|
||||||
project_ids = params["container_project"]
|
project_ids = params["container_project"]
|
||||||
@projects = current_user.projects.update_positions( project_ids )
|
@projects = current_user.projects.update_positions( project_ids )
|
||||||
render :nothing => true
|
head :ok
|
||||||
rescue
|
rescue
|
||||||
notify :error, $!
|
notify :error, $!
|
||||||
redirect_to :action => 'index'
|
redirect_to :action => 'index'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue