]> git.openstreetmap.org Git - rails.git/commitdiff
Don't preload nodes as it seem to break ways with duplicate nodes.
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 16:28:02 +0000 (16:28 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 16:28:02 +0000 (16:28 +0000)
app/controllers/amf_controller.rb

index 212343607be1940791885e7ed5f93092cc9d5a92..9592cf94100e61b35f98074e0f411d74dfe929fb 100644 (file)
@@ -167,7 +167,7 @@ class AmfController < ApplicationController
 
     RAILS_DEFAULT_LOGGER.info("  Message: getway, id=#{wayid}")
 
-    way = Way.find(wayid, :include => :nodes)
+    way = Way.find(wayid)
     long_array = []
     lat_array = []
     points = []