compatible with latest couchdb trunk revision (r657930)

This commit is contained in:
Chris Anderson 2008-05-19 13:56:57 -07:00
parent fa0d970d31
commit ab6e595601

View file

@ -15,8 +15,7 @@ class CouchRest
def temp_view map, reduce = nil, type = 'application/json'
funcs = {
:map => map,
:type => type
:map => map
}
funcs[:reduce] = reduce if reduce
JSON.parse(RestClient.post("#{@root}/_temp_view", JSON.unparse(funcs), {"Content-Type" => type}))