Render nothing on a successful delete.
This commit is contained in:
parent
3d5ee2675b
commit
a0545ba4e5
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ class NodeController < ApplicationController
|
||||||
begin
|
begin
|
||||||
node = Node.find(params[:id])
|
node = Node.find(params[:id])
|
||||||
node.delete_with_history(@user)
|
node.delete_with_history(@user)
|
||||||
|
|
||||||
|
render :nothing => true
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render :nothing => true, :status => :not_found
|
render :nothing => true, :status => :not_found
|
||||||
rescue OSM::APIError => ex
|
rescue OSM::APIError => ex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue