Update customer.rb

This commit is contained in:
2016-05-11 12:14:34 -04:00
parent b4c79b08a2
commit eed8daf87c

View File

@@ -75,21 +75,12 @@ class Customer < ActiveRecord::Base
@details.mobile_phone = pn
end
# Updates Both local DB name & QBO display_name
def name=(s)
@details.display_name = s if @details
self.name = s
end
# returns the customer's notes
def notes
return @details.notes if @details
end
# updates the customer's notes in QBO
def notes=(s)
@details.notes = s if @details
end
# Magic Method
def method_missing(name, *arguments)
value = arguments[0]