This commit is contained in:
ricky authored and GitHub committed 2016-07-28 20:45:29 -04:00
1 parent fb1a560751
commit bbc2ae4750
1 file changed
+5
+5
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)