mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update customer.rb
This commit is contained in:
1 parent
c9c49c9425
commit
eeccece2a7
1 file changed
+3
-3
@@ -19,9 +19,9 @@ class Customer < ActiveRecord::Base
|
|||||||
|
|
||||||
validates_presence_of :id, :name
|
validates_presence_of :id, :name
|
||||||
|
|
||||||
after_initialize :pull
|
after_initialize :pull, unless: :new_record?
|
||||||
before_save :create_customer
|
#before_save :create_customer, unless: :new_record?
|
||||||
after_save :push
|
after_save :push, unless: :new_record?
|
||||||
|
|
||||||
self.primary_key = :id
|
self.primary_key = :id
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user