Method: NodesController#destroy

Defined in:
app/controllers/nodes_controller.rb

#destroyObject



34
35
36
37
38
39
40
41
# File 'app/controllers/nodes_controller.rb', line 34

def destroy
  DeleteNode.new(node: @node).perform
  FriendlyNameNodes.new.perform

  head :ok
rescue DeleteNode::NodeWithRunningSlotsError
  head :not_acceptable
end