change default for authorization to nil

This commit is contained in:
Volker Zöpfel committed 2013-12-03 08:30:28 +01:00
1 parent 18c4bab286
commit b1f8ac3c0d
2 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ module Google
# Loads credentials and authorizes an client.
# @return [Object] Signet::OAuth2::Client or NIL
def authorize
@authorization = false
@authorization = nil
cached_credentials = load_credentials
if cached_credentials && cached_credentials.size > 0
@authorization = Signet::OAuth2::Client.new(cached_credentials)