Created
January 21, 2011 15:07
-
-
Save DCarper/789796 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| module Invite | |
| module Inviter | |
| attr_accessor :adapter | |
| # Used to create a pre-approved invite for an existing user | |
| # | |
| def pre_approve!(a_user) | |
| adapter().pre_approve! a_user | |
| end | |
| # send an invitation to a given email address | |
| # | |
| def send_invite!(target) | |
| adapter().send_invite! target | |
| end | |
| def adapter | |
| @adapter ||= Invite::InviteAdapter::ContestAdapter.new(self) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment