Update customer.rb

This commit is contained in:
2016-05-11 11:56:36 -04:00
parent 476a194410
commit 0c4b8a24d9

View File

@@ -15,12 +15,11 @@ class Customer < ActiveRecord::Base
has_many :qbo_purchases
has_many :vehicles
#before_save :qbo
attr_accessible :name, :notes, :email, :primary_phone, :mobile_phone, :skip_details
attr_accessible :name, :skip_details
validates_presence_of :id, :name
after_initialize :pull
after_initialize :pull, unless: :skip_details
after_save :push
self.primary_key = :id