Explicitly use self when using info in Authorization

This commit is contained in:
Piotr Sarnacki 2013-07-27 01:42:14 +02:00
parent 2c9d4f0490
commit 207a6e3e04

View File

@ -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