]> git.openstreetmap.org Git - rails.git/commitdiff
back out eager way_tag loading as it wasn't getting all tags?
authorSteve Coast <steve@asklater.com>
Mon, 14 May 2007 01:51:14 +0000 (01:51 +0000)
committerSteve Coast <steve@asklater.com>
Mon, 14 May 2007 01:51:14 +0000 (01:51 +0000)
app/controllers/api_controller.rb

index fd9ce22ed69ac4552e2bd2682dd8d2dbf4c9d52b..35a0f25b75a2332308b3c1856aef2e3d72e03aa4 100644 (file)
@@ -186,7 +186,7 @@ class ApiController < ApplicationController
     if segment_ids.length > 0
       way_segments = WaySegment.find_all_by_segment_id(segment_ids)
       way_ids = way_segments.collect {|way_segment| way_segment.id }
-      ways = Way.find(way_ids, :include => [:way_tags]) # NB: doesn't pick up segments, tags from db until accessed via way.way_segments etc.
+      ways = Way.find(way_ids) # NB: doesn't pick up segments, tags from db until accessed via way.way_segments etc.
 
       # seg_ids = way_segments.collect {|way_segment| way_segment.segment_id }