projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcad29d
)
Fix way search.
author
Tom Hughes
<tom@compton.nu>
Wed, 27 Jun 2007 17:45:00 +0000
(17:45 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 27 Jun 2007 17:45:00 +0000
(17:45 +0000)
app/controllers/search_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/search_controller.rb
b/app/controllers/search_controller.rb
index 70bf23824a3e3167cf83d204e1d7a9ce9214c7d5..0a0b27ac5fd00eac7cf3d549bd4dc42477a851f7 100644
(file)
--- 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.seg
ment
s
+ seg_ids += way.segs
end
segments += Segment.find(seg_ids)