Skip to content

Instantly share code, notes, and snippets.

@c80609a
Created March 19, 2021 08:04
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 c80609a/c5be702733a099166d1ef7bba7217328 to your computer and use it in GitHub Desktop.
Save c80609a/c5be702733a099166d1ef7bba7217328 to your computer and use it in GitHub Desktop.
Devise Invitable - Manually send invitation token
user_to_invite = User.find(email: "peter.muster@test.com")
user_to_invite.deliver_invitation
token = user_to_invite.raw_invitation_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment