modified the 'all' view to emit doc ids so we can do Model.all(:keys => [1,2])
This commit is contained in:
parent
fc1ad2a07e
commit
87d246d30e
|
@ -35,7 +35,7 @@ module CouchRest
|
||||||
'all' => {
|
'all' => {
|
||||||
'map' => "function(doc) {
|
'map' => "function(doc) {
|
||||||
if (doc['couchrest-type'] == '#{self.to_s}') {
|
if (doc['couchrest-type'] == '#{self.to_s}') {
|
||||||
emit(null,1);
|
emit(doc['_id'],1);
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue