Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created January 21, 2011 15:07
Show Gist options
  • Select an option

  • Save DCarper/789796 to your computer and use it in GitHub Desktop.

Select an option

Save DCarper/789796 to your computer and use it in GitHub Desktop.
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