Fixed syntax error.
This commit is contained in:
parent
397a289e97
commit
9fd61820c7
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Authorization < ApplicationModel
|
||||||
Authorization.create(
|
Authorization.create(
|
||||||
user: user,
|
user: user,
|
||||||
uid: hash['uid'],
|
uid: hash['uid'],
|
||||||
username: hash['info']['nickname'] || hash['username'],
|
username: hash['info']['nickname'] || hash['info']['username'] || hash['info']['name'] || hash['info']['email'] || hash['username'],
|
||||||
provider: hash['provider'],
|
provider: hash['provider'],
|
||||||
token: hash['credentials']['token'],
|
token: hash['credentials']['token'],
|
||||||
secret: hash['credentials']['secret']
|
secret: hash['credentials']['secret']
|
||||||
|
@ -89,7 +89,7 @@ class Authorization < ApplicationModel
|
||||||
private
|
private
|
||||||
|
|
||||||
def delete_user_cache
|
def delete_user_cache
|
||||||
user.cache_delete
|
user.touch
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue