X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 0c83b5b92..b13c91b08 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -1,5 +1,5 @@ class WayController < ApplicationController - require 'xml/libxml' + require "xml/libxml" skip_before_filter :verify_authenticity_token before_filter :authorize, :only => [:create, :update, :delete] @@ -84,11 +84,11 @@ class WayController < ApplicationController end def ways - unless params['ways'] + unless params["ways"] fail OSM::APIBadUserInput.new("The parameter ways is required, and must be of the form ways=id[,id[,id...]]") end - ids = params['ways'].split(',').collect(&:to_i) + ids = params["ways"].split(",").collect(&:to_i) if ids.length == 0 fail OSM::APIBadUserInput.new("No ways were given to search for")