Created
July 28, 2014 10:17
-
-
Save pjurczynski/8cd5c04bd492e07a8c3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def users_to_invite | |
users ||= begin | |
contacts_to_connect = Contact.from_id(connection_params[:contact_ids]) | |
emails_to_connect = connection_params[:email_list].split ',' | |
(contacts_to_connect.pluck(:primary_email) + emails_to_connect).uniq | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment