X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..6671a934bf10ad202576d5ca0c1591cf2ef627f8:/app/controllers/node_controller.rb?ds=sidebyside diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index cd5b893e3..8c57ad8f9 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -1,7 +1,7 @@ # The NodeController is the RESTful interface to Node objects class NodeController < ApplicationController - require 'xml/libxml' + require "xml/libxml" skip_before_filter :verify_authenticity_token before_filter :authorize, :only => [:create, :update, :delete] @@ -64,11 +64,11 @@ class NodeController < ApplicationController # Dump the details on many nodes whose ids are given in the "nodes" parameter. def nodes - unless params['nodes'] + unless params["nodes"] fail OSM::APIBadUserInput.new("The parameter nodes is required, and must be of the form nodes=id[,id[,id...]]") end - ids = params['nodes'].split(',').collect(&:to_i) + ids = params["nodes"].split(",").collect(&:to_i) if ids.length == 0 fail OSM::APIBadUserInput.new("No nodes were given to search for")