Skip to content

Instantly share code, notes, and snippets.

@kineticac
Created March 9, 2011 09:27
Show Gist options
  • Save kineticac/861940 to your computer and use it in GitHub Desktop.
Save kineticac/861940 to your computer and use it in GitHub Desktop.
New way of applying omniauth to an existing user
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