Merge pull request #18 from ranjibd/GITHUB-ISSUE-17
Ranjib| there is n method/instance variable name options in serialize_body
This commit is contained in:
commit
40cbcd8e7e
|
@ -326,7 +326,7 @@ module Google
|
|||
# JSON
|
||||
def serialize_body(body)
|
||||
return body.to_json if body.respond_to?(:to_json)
|
||||
return MultiJson.dump(options[:body_object].to_hash) if body.respond_to?(:to_hash)
|
||||
return MultiJson.dump(body.to_hash) if body.respond_to?(:to_hash)
|
||||
raise TypeError, 'Could not convert body object to JSON.' +
|
||||
'Must respond to :to_json or :to_hash.'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue