kylejginavan/youtube_it — pull request #68 by yaauie (2012-03-17 20:04:35+00:00)
Title: OAuth2Client#refresh_access_token! should cause new client to be created

OAuth2Client#client continues to reference original token, even after refreshing. This patch deletes the cached `@client` so it will be regenerated on next request.

Note: Destructive action is wrapped in a Thread.exclusive to make the action thread-safe.