mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo_employee.rb
This commit is contained in:
@@ -14,11 +14,11 @@ class QboEmployee < ActiveRecord::Base
|
|||||||
attr_accessible :name
|
attr_accessible :name
|
||||||
validates_presence_of :id, :name
|
validates_presence_of :id, :name
|
||||||
|
|
||||||
def get_base
|
def self.get_base
|
||||||
Qbo.get_base(:employee)
|
Qbo.get_base(:employee)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync
|
def self.sync
|
||||||
employees = get_base.service.all
|
employees = get_base.service.all
|
||||||
|
|
||||||
transaction do
|
transaction do
|
||||||
|
|||||||
Reference in New Issue
Block a user