]> git.openstreetmap.org Git - rails.git/commitdiff
Explain why we don't include the nodes in the way load.
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 16:31:50 +0000 (16:31 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 16:31:50 +0000 (16:31 +0000)
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 = []