From bd1ce540d48505e5eb216cf47f4807946ffcffc3 Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 25 Jan 2012 03:24:22 -0500 Subject: [PATCH] if ApiClient receives :authorization => false, respect that, and only default to oauth2 if :authorization is omitted --- lib/google/api_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google/api_client.rb b/lib/google/api_client.rb index fb5f53626..91aec235d 100644 --- a/lib/google/api_client.rb +++ b/lib/google/api_client.rb @@ -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 = {}