if ApiClient receives :authorization => false, respect that, and only default to oauth2 if :authorization is omitted

This commit is contained in:
Ethan committed 2012-02-22 03:30:59 -05:00
1 parent d59901bf1e
commit bd1ce540d4
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ module Google
).strip
# The writer method understands a few Symbols and will generate useful
# default authentication mechanisms.
self.authorization = options["authorization"] || :oauth_2
self.authorization = options.key?("authorization") ? options["authorization"] : :oauth_2
self.key = options["key"]
self.user_ip = options["user_ip"]
@discovery_uris = {}