Last active
August 29, 2015 14:09
-
-
Save zackshapiro/09bff2e2903e4a09bc64 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# /app/models/user.rb | |
def update_credentials(client) | |
new_client = client.refresh! | |
update(access_token: new_client.token, refresh_token: new_client.refresh_token) | |
self | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment