mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Search
This commit is contained in:
@@ -140,6 +140,11 @@ class Customer < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.search(search)
|
||||||
|
where("name LIKE ?", "%#{search}%")
|
||||||
|
where("id LIKE ?", "%#{search}%")
|
||||||
|
end
|
||||||
|
|
||||||
# proforms a bruteforce sync operation
|
# proforms a bruteforce sync operation
|
||||||
# This needs to be simplified
|
# This needs to be simplified
|
||||||
def self.sync_by_id(id)
|
def self.sync_by_id(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user