Created
March 9, 2011 09:27
-
-
Save kineticac/861940 to your computer and use it in GitHub Desktop.
New way of applying omniauth to an existing user
This file contains 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
elsif current_user | |
current_user.apply_omniauth!(omniauth) | |
flash[:notice] = "Authentication successful." | |
redirect_to authentications_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment