Skip to content
Browse files

fix search

  • Loading branch information...
1 parent 12cac75 commit c8bf2f0272b60307da32b8b45cfbfe60ed531ee9 @ghostandthemachine ghostandthemachine committed Dec 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/routes/search/search.rb
View
3 lib/routes/search/search.rb
@@ -50,8 +50,7 @@ def self.search(opts)
search_term << params[:args].gsub('%20', '%')
search_term << "%"
e1 = Event.all(:title.like => search_term, permission: "public")
- e2 = Event.all(:category.name.like => search_term, permission: "public")
- @events = e1.zip(e2).flatten.compact
+ @events = e1
categories = Set[]
@events.each do |e|
categories.add(e.category.name)

0 comments on commit c8bf2f0

Please sign in to comment.
Something went wrong with that request. Please try again.