X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ad1ce97983a5d4fb86ccb8ee4cd640a76f95255..0db30c611a99d62381217d86c5a0bd9d104efb42:/app/controllers/api/nodes_controller.rb?ds=sidebyside diff --git a/app/controllers/api/nodes_controller.rb b/app/controllers/api/nodes_controller.rb index dafb19ebd..2962ce070 100644 --- a/app/controllers/api/nodes_controller.rb +++ b/app/controllers/api/nodes_controller.rb @@ -32,9 +32,7 @@ module Api if @node.visible # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] else head :gone end @@ -75,9 +73,7 @@ module Api @nodes = Node.find(ids) # Render the result - respond_to do |format| - format.xml - end + render :formats => [:xml] end end end