Update customer.rb

This commit is contained in:
2019-06-25 11:50:14 -04:00
committed by GitHub
parent d6c5daff49
commit 1af846537d

View File

@@ -90,7 +90,7 @@ class Customer < ActiveRecord::Base
# update the localy stored phone number as a plain int # update the localy stored phone number as a plain int
def update_phone_number def update_phone_number
begin begin
phone_number = primary_phone.tr('^0-9', '').to_i self.phone_number = self.primary_phone.tr('^0-9', '').to_i
rescue rescue
return nil return nil
end end