]> git.openstreetmap.org Git - rails.git/commitdiff
Pass the node list to to_xml_node when outputting a way so that it
authorTom Hughes <tom@compton.nu>
Thu, 20 Dec 2007 10:21:22 +0000 (10:21 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 20 Dec 2007 10:21:22 +0000 (10:21 +0000)
lists the nodes in the way properly.

app/controllers/search_controller.rb

index 90ec8fd6a0bf92d2fddb21e924fa5f7cc279a432..42989f05a8f844ecd9745e2e21cfad466f0112ef 100644 (file)
@@ -110,7 +110,7 @@ class SearchController < ApplicationController
     end
 
     ways.each do |way|
-      doc.root << way.to_xml_node(user_display_name_cache)
+      doc.root << way.to_xml_node(nodes, user_display_name_cache)
     end 
 
     relations.each do |rel|