artisan-tattoo / assistant-api

A simple CRM for managing tattoo shops.
artisanassistant.com
67 stars 8 forks source link

search #52

Closed steveklabnik closed 9 years ago

steveklabnik commented 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([], &:|)
steveklabnik commented 9 years ago

We're going to do this on the client side instead: https://github.com/artisan-tattoo/assistant-frontend/issues/47