lib/onering/api.rb in onering-client-0.0.55 vs lib/onering/api.rb in onering-client-0.0.56
- old
+ new
@@ -70,10 +70,10 @@
def request(method, endpoint, options={})
endpoint = [@_config.get(:path, DEFAULT_PATH).strip, endpoint.sub(/^\//,'')].join('/')
- case method
+ case (method.to_sym rescue method)
when :post
rv = Onering::API.post(endpoint, options)
when :put
rv = Onering::API.put(endpoint, options)
when :delete
\ No newline at end of file