Closed steveklabnik closed 9 years ago
The code from the original app:
@customers = %w[name phone email credit want notes location].collect do |col| Customer.all(:conditions => ["#{col} ILIKE ?","%#{params[:q]}%"]) end.inject([], &:|)
We're going to do this on the client side instead: https://github.com/artisan-tattoo/assistant-frontend/issues/47
The code from the original app: