Skip to content
Browse files

having difficulty with my branch

  • Loading branch information...
2 parents 67cc572 + 3c37725 commit e94ff00e0428922f539a3b61e6779bfb28cbd8a8 @jordanrossdunn jordanrossdunn committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/routes/search/search.rb
View
4 lib/routes/search/search.rb
@@ -49,9 +49,7 @@ def self.search(opts)
search_term = "%"
search_term << params[:args].gsub('%20', '%')
search_term << "%"
- e1 = Event.all(:title.downcase.like => search_term.downcase, permission: "public")
- e2 = Event.all(:category_name.like => search_term.downcase, permission: "public")
- @events = e1.zip(e2).flatten.compact
+ @events = Event.all(:title.like => search_term, permission: "public")
categories = Set[]
@events.each do |e|
categories.add(e.category.name)

0 comments on commit e94ff00

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