Setter for email

This commit is contained in:
2016-05-31 11:16:41 -04:00
parent aac442ab55
commit f8a9ffbe15

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