projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5ee26
)
Render nothing on a successful delete.
author
Tom Hughes
<tom@compton.nu>
Tue, 22 Jul 2008 14:16:07 +0000
(14:16 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 22 Jul 2008 14:16:07 +0000
(14:16 +0000)
app/controllers/node_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/node_controller.rb
b/app/controllers/node_controller.rb
index 1e0deb14004bfb5fc6c99f0388c64e92af65a20a..4a75277348e1d6dc4de8a0a89424a9cadd441298 100644
(file)
--- a/
app/controllers/node_controller.rb
+++ b/
app/controllers/node_controller.rb
@@
-70,6
+70,8
@@
class NodeController < ApplicationController
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