Skip to content

Instantly share code, notes, and snippets.

@thedelchop
Created February 28, 2012 18:18
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 thedelchop/1934074 to your computer and use it in GitHub Desktop.
Save thedelchop/1934074 to your computer and use it in GitHub Desktop.
Callback for Harvest
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