X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2956d126908f74568878d6456412a48d259c58..5fbc8ad3f471fde8c5defedc41bbb8374e13abdb:/app/controllers/api_controller.rb?ds=sidebyside diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 36ce88acd..c17ff6798 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -132,11 +132,11 @@ class ApiController < ApplicationController ways = Array.new if node_ids.length > 0 way_nodes = WayNode.find_all_by_node_id(node_ids) - way_ids = way_nodes.collect {|way_node| way_node.id[0] } + way_ids = way_nodes.collect { |way_node| way_node.id[0] } ways = Way.find(way_ids) list_of_way_nodes = ways.collect { |way| - way.way_nodes.collect { |way_node| way_node.node_id } + way.way_nodes.collect { |way_node| way_node.node_id } } list_of_way_nodes.flatten!