Setter for email

This commit is contained in:
ricky committed 2016-05-31 11:16:41 -04:00
1 parent aac442ab55
commit f8a9ffbe15
1 file changed
+7
+7
View File
@@ -36,6 +36,13 @@ class Customer < ActiveRecord::Base
end
end
# Convenience Method
# Sets the email
def email=(s)
pull unless @details
@details.email_address = s
end
# Convenience Method
# returns the customer's primary phone
def primary_phone