]> git.openstreetmap.org Git - rails.git/commitdiff
Fix way search.
authorTom Hughes <tom@compton.nu>
Wed, 27 Jun 2007 17:45:00 +0000 (17:45 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 27 Jun 2007 17:45:00 +0000 (17:45 +0000)
app/controllers/search_controller.rb

index 70bf23824a3e3167cf83d204e1d7a9ce9214c7d5..0a0b27ac5fd00eac7cf3d549bd4dc42477a851f7 100644 (file)
@@ -92,7 +92,7 @@ class SearchController < ApplicationController
     # Fetch any segments needed for our ways (only have matching segments so far)
     seg_ids = Array.new
     ways.each do |way|
-      seg_ids += way.segments
+      seg_ids += way.segs
     end
     segments += Segment.find(seg_ids)