Extended search

This commit is contained in:
2016-08-01 15:31:54 -04:00
committed by GitHub
parent baff3f5a1b
commit 2324aadcd5

View File

@@ -18,6 +18,8 @@ class Customer < ActiveRecord::Base
attr_accessible :name, :notes, :email, :primary_phone, :mobile_phone
validates_presence_of :id, :name
acts_as_searchable :columns => ["#{table_name}.name"]
self.primary_key = :id
# returns a human readable string