README.md in unidom-contact-1.1 vs README.md in unidom-contact-1.2

- old
+ new

@@ -43,14 +43,22 @@ ## Include the Concerns ```ruby include Unidom::Contact::Concerns::AsContact include Unidom::Contact::Concerns::AsSubscriber +include Unidom::Contact::Concerns::AsEmailAddressSubscriber ``` ### As Contact concern -The As Contact concern do the following tasks for the includer automatically: +The As Contact concern do the following tasks for the includer automatically: 1. Define the has_many :contact_subscriptions macro as: ``has_many :contact_subscriptions, class_name: 'Unidom::Contact::ContactSubscription', as: :contact`` +2. Define the #subscribe_contact! method as: ``def subscribe_contact!(contact, at: Time.now)`` ### As Subscriber concern -The As Subscriber concern do the following tasks for the includer automatically: +The As Subscriber concern do the following tasks for the includer automatically: 1. Define the has_many :contact_subscriptions macro as: ``has_many :contact_subscriptions, class_name: 'Unidom::Contact::ContactSubscription', as: :subscriber`` +2. Define the #is_subscribed_as_contact! method as: ``def is_subscribed_as_contact!(by: nil, at: Time.now)`` + +### As Email Address Subscriber concern +The As Email Address Subscriber concern do the following tasks for the includer automatically: +1. Include the As Subscriber concern +2. Define the has_many :email_addresses macro as: ``has_many :email_addresses, through: :contact_subscriptions, source: :contact, source_type: 'Unidom::Contact::EmailAddress'``