Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

search is back

  • Loading branch information...
commit ff696ff44992cc8567bcf762458c921f70b749dd 1 parent 74f5dab
Arthur PETRY authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 app/controllers/albums_controller.rb
4 app/controllers/albums_controller.rb
@@ -5,9 +5,7 @@ def index
5 5 if q = params[:q]
6 6 # conditions = {:artist => /#{q}/i, :name => /#{q}/i}
7 7 # see http://www.mongodb.org/display/DOCS/OR+operations+in+query+expressions
8   - # this can shutdown the server !
9   - # conditions = { "$where" => "this.name.match(/#{q}/i) || this.artist.match(/#{q}/i)" }
10   - conditions = nil # disabled for now.
  8 + conditions = { "$where" => "this.name.match(/#{q}/i) || this.artist.match(/#{q}/i)" }
11 9 end
12 10 if params[:randomly]
13 11 @albums = Album.find_randomly

0 comments on commit ff696ff

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