This commit is contained in:
2016-07-28 20:45:29 -04:00
committed by GitHub
parent fb1a560751
commit bbc2ae4750

View File

@@ -140,6 +140,11 @@ class Customer < ActiveRecord::Base
end
end
def self.search(search)
where("name LIKE ?", "%#{search}%")
where("id LIKE ?", "%#{search}%")
end
# proforms a bruteforce sync operation
# This needs to be simplified
def self.sync_by_id(id)