]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Explain why we don't include the nodes in the way load.
[rails.git] / app / controllers / amf_controller.rb
index 9592cf94100e61b35f98074e0f411d74dfe929fb..ac0809219ad4ee1c23e076914efb8b04b52916ea 100644 (file)
@@ -167,7 +167,11 @@ class AmfController < ApplicationController
 
     RAILS_DEFAULT_LOGGER.info("  Message: getway, id=#{wayid}")
 
+    # Ideally we would do ":include => :nodes" here but if we do that
+    # then rails only seems to return the first copy of a node when a
+    # way includes a node more than once
     way = Way.find(wayid)
+
     long_array = []
     lat_array = []
     points = []