lib/ncmb/object.rb in ncmb-ruby-client-0.1.0 vs lib/ncmb/object.rb in ncmb-ruby-client-0.1.1
- old
+ new
@@ -62,14 +62,15 @@
self
end
alias :save :post
def put
+ put_path = path
params = @fields
params.delete :objectId
params.delete :createDate
params.delete :updateDate
- result = @@client.put path, params
+ result = @@client.put put_path, params
@fields[:updateDate] = result[:updateDate]
self
end
alias :update :put