Explicitly use self when using info in Authorization
This commit is contained in:
parent
2c9d4f0490
commit
207a6e3e04
|
@ -207,7 +207,7 @@ class Travis::Api::App
|
|||
|
||||
def fetch
|
||||
user = ::User.find_by_github_id(data['id'])
|
||||
info = drop_token ? info : info(github_oauth_token: token)
|
||||
info = drop_token ? self.info : self.info(github_oauth_token: token)
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
if user
|
||||
|
|
Loading…
Reference in New Issue
Block a user