From ca63852b4f42f7605babedacea5a0a06703f727d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 31 May 2016 08:47:11 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index b990467..5cd8419 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -15,8 +15,8 @@ class Customer < ActiveRecord::Base has_many :qbo_purchases has_many :vehicles - attr_accessible :name, :notes, :email, :primary_phone, :mobile_phone - + attr_accessor :notes, :email, :primary_phone, :mobile_phone + attr_accessible :name validates_presence_of :id, :name self.primary_key = :id