]> git.openstreetmap.org Git - rails.git/commitdiff
Render nothing on a successful delete.
authorTom Hughes <tom@compton.nu>
Tue, 22 Jul 2008 14:16:07 +0000 (14:16 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 22 Jul 2008 14:16:07 +0000 (14:16 +0000)
app/controllers/node_controller.rb

index 1e0deb14004bfb5fc6c99f0388c64e92af65a20a..4a75277348e1d6dc4de8a0a89424a9cadd441298 100644 (file)
@@ -70,6 +70,8 @@ class NodeController < ApplicationController
     begin
       node = Node.find(params[:id])
       node.delete_with_history(@user)
     begin
       node = Node.find(params[:id])
       node.delete_with_history(@user)
+
+      render :nothing => true
     rescue ActiveRecord::RecordNotFound
       render :nothing => true, :status => :not_found
     rescue OSM::APIError => ex
     rescue ActiveRecord::RecordNotFound
       render :nothing => true, :status => :not_found
     rescue OSM::APIError => ex