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

This commit is contained in:
Ethan 2012-01-25 03:24:22 -05:00
parent d59901bf1e
commit bd1ce540d4
1 changed files with 1 additions and 1 deletions

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 = {}