]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/search_controller.rb
Fix way search.
[rails.git] / 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)