Permalink
Browse files

fix ManyProxy#size

  • Loading branch information...
1 parent d308d45 commit 0fefc21c0a9cc068af0e5c6d75e03618987c8d82 @mislav committed Mar 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mingo/many_proxy.rb
View
@@ -36,7 +36,7 @@ def object_ids
end
def size
- (counter_cache? && counter_cache) || (@join_loaded && @join_loaded.size) || join_cursor.size
+ (counter_cache? && counter_cache) || (@join_loaded && @join_loaded.size) || join_cursor.count
end
def include?(doc)

0 comments on commit 0fefc21

Please sign in to comment.