compatible with latest couchdb trunk revision (r657930)
This commit is contained in:
parent
fa0d970d31
commit
ab6e595601
1 changed files with 1 additions and 2 deletions
|
@ -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}))
|
||||
|
|
Loading…
Reference in a new issue