compatible with latest couchdb trunk revision (r657930)
This commit is contained in:
parent
fa0d970d31
commit
ab6e595601
|
@ -15,8 +15,7 @@ class CouchRest
|
||||||
|
|
||||||
def temp_view map, reduce = nil, type = 'application/json'
|
def temp_view map, reduce = nil, type = 'application/json'
|
||||||
funcs = {
|
funcs = {
|
||||||
:map => map,
|
:map => map
|
||||||
:type => type
|
|
||||||
}
|
}
|
||||||
funcs[:reduce] = reduce if reduce
|
funcs[:reduce] = reduce if reduce
|
||||||
JSON.parse(RestClient.post("#{@root}/_temp_view", JSON.unparse(funcs), {"Content-Type" => type}))
|
JSON.parse(RestClient.post("#{@root}/_temp_view", JSON.unparse(funcs), {"Content-Type" => type}))
|
||||||
|
|
Loading…
Reference in a new issue