forgot to add database to count query

This commit is contained in:
Daniel Kirsch 2009-07-21 14:36:09 +02:00
parent be7cd7442b
commit 3ee810010d

View file

@ -60,7 +60,7 @@ module CouchRest
end
def count(opts = {}, &block)
@klass.all({:raw => true, :limit => 0}.merge(opts), &block)['total_rows']
@klass.all({:database => @database, :raw => true, :limit => 0}.merge(opts), &block)['total_rows']
end
def first(opts = {})