lib/persevere_adapter.rb in dm-persevere-adapter-0.60.1 vs lib/persevere_adapter.rb in dm-persevere-adapter-0.60.2

- old
+ new

@@ -266,10 +266,11 @@ path = "/#{resource.model.storage_name}/" # Invoke to_json_hash with a boolean to indicate this is a create # We might want to make this a post-to_json_hash cleanup instead payload = resource.to_json_hash(false) # scrub_data(payload) + DataMapper.logger.debug("--> PATH/PAYLOAD: #{path} #{payload.inspect}") response = @persevere.create(path, payload) # Check the response, this needs to be more robust and raise # exceptions when there's a problem if response.code == "201"# good: @@ -329,9 +330,10 @@ resources.each do |resource| tblname = resource.model.storage_name path = "/#{tblname}/#{resource.key.first}" payload = resource.to_json_hash() # scrub_data(payload) + DataMapper.logger.debug("--> PATH/PAYLOAD: #{path} #{payload.inspect}") result = @persevere.update(path, payload) if result.code == "200" updated += 1 else \ No newline at end of file