lib/rapidash/base.rb in rapidash-0.0.3 vs lib/rapidash/base.rb in rapidash-0.0.4
- old
+ new
@@ -24,10 +24,10 @@
self.options[:body] = params.to_json
call!
end
def update!(params)
- self.options[:method] = :put
+ self.options[:method] = client.class.patch ? :patch : :put
self.options[:body] = params.to_json
call!
end
def delete!