git-svn-id: file:///home/svn/framework3/trunk@3984 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-09-27 22:09:55 +00:00
parent b5b87403d3
commit eac4c77c1a
1 changed files with 5 additions and 2 deletions

View File

@ -10,18 +10,21 @@ class ApplicationController < ActionController::Base
end
mlist.each do |m|
if (m.name.downcase.index(terms.downcase))
res << m
next
end
if (m.desc.downcase.index(terms.downcase))
if (m.description.downcase.index(terms.downcase))
res << m
next
end
end
p res.length
res
end