Fixed an issue where the code was expecting parameters as a hash when in fact they are previously converted to an array

This commit is contained in:
Marc Lennox 2012-08-18 16:43:57 -07:00
parent e77169a7f4
commit 6795eeece9
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module Google
self.headers = options[:headers] || {} self.headers = options[:headers] || {}
if options[:media] if options[:media]
self.media = options[:media] self.media = options[:media]
upload_type = parameters['uploadType'] || parameters['upload_type'] upload_type = self.parameters.find{|a| ['uploadType', 'upload_type'].include?(a[0])}[1]
case upload_type case upload_type
when "media" when "media"
if options[:body] || options[:body_object] if options[:body] || options[:body_object]