]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Don't preload nodes as it seem to break ways with duplicate nodes.
[rails.git] / 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 = []