Update customer.rb

This commit is contained in:
ricky authored and GitHub committed 2019-06-25 11:50:14 -04:00
1 parent d6c5daff49
commit 1af846537d
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ class Customer < ActiveRecord::Base
# update the localy stored phone number as a plain int
def update_phone_number
begin
phone_number = primary_phone.tr('^0-9', '').to_i
self.phone_number = self.primary_phone.tr('^0-9', '').to_i
rescue
return nil
end