From: Tom Hughes Date: Wed, 27 Jun 2007 17:45:00 +0000 (+0000) Subject: Fix way search. X-Git-Tag: live~8334 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cd72ee9a66a3a1810015269e378b6d1df93e9388?hp=dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12 Fix way search. --- diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 70bf23824..0a0b27ac5 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -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)