Last active
August 29, 2015 14:04
-
-
Save mattkasa/8588a9ccc2b86bd1341e to your computer and use it in GitHub Desktop.
Re-send invite to not_invited_users
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
i = Invite.find('54456520a263be3d05000f07') and (i.user_ids - i.invited_user_ids).each { |u| (puts u if Invite.invite_user(i.id, u, { :is_public => i.inviteable.public? })) if User.find(u).contactable_by?(i.company) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment