From 0c4b8a24d98005a9e24e9eaf135d66c7732f1d43 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 11:56:36 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 69a77a1..241dc77 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -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