lib/ecoportal/api/common/batch_operation.rb in ecoportal-api-0.1.6 vs lib/ecoportal/api/common/batch_operation.rb in ecoportal-api-0.1.7

- old
+ new

@@ -38,10 +38,11 @@ else raise "Total failure in batch operation" end end - def get(id) + def get(doc) + id = get_id(doc) @operations << { path: @base_path + "/" + CGI::escape(id), method: "GET", callback: block_given? && Proc.new }