twitter-auth 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 5
3
+ :patch: 7
4
4
  :major: 0
@@ -15,7 +15,10 @@ module TwitterAuth
15
15
  user_info = JSON.parse(token.get('/account/verify_credentials.json').body)
16
16
 
17
17
  if user = User.find_by_login(user_info['screen_name'])
18
- user.update_twitter_attributes(user_info)
18
+ user.assign_twitter_attributes(user_info)
19
+ user.access_token = token.token
20
+ user.access_secret = token.secret
21
+ user.save
19
22
  user
20
23
  else
21
24
  User.create_from_twitter_hash_and_token(user_info, token)