Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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