From f094ef57ec7b1758d18444701dee64a2d3ac88c7 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 30 Dec 2023 20:08:36 -0500 Subject: [PATCH] Setter for notes --- app/models/customer.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/models/customer.rb b/app/models/customer.rb index 6ace67b..1314de8 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -87,6 +87,13 @@ class Customer < ActiveRecord::Base #update our locally stored number too update_mobile_phone_number end + + # Convenience Method + # Sets the notes + def notes=(s) + pull unless @details + @details.notes = s + end # update the localy stored phone number as a plain string with no special chars def update_phone_number