mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update customer.rb
This commit is contained in:
1 parent
d6c5daff49
commit
1af846537d
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user