Skip to content

Instantly share code, notes, and snippets.

@bplexico
Created May 31, 2013 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bplexico/5687881 to your computer and use it in GitHub Desktop.
Save bplexico/5687881 to your computer and use it in GitHub Desktop.
almost there
def redeem
result = invited_user
Invite.transaction do
if invite_was_redeemed?
result = create_user_if_missing
process_invitation
end
end
result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment