Created
February 28, 2012 18:18
-
-
Save thedelchop/1934074 to your computer and use it in GitHub Desktop.
Callback for Harvest
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
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController | |
def harvest | |
# You need to implement the method below in your model | |
current_user.update_attributes(:harvest_token = request.env["omniauth.auth"][WHERE EVER THE TOKEN IS IN THE HASH HARVEST RETURNS] | |
redirect_to WHERE YOU WANT TO GO | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment