lib/bmg/relation/in_memory.rb in bmg-0.18.1 vs lib/bmg/relation/in_memory.rb in bmg-0.18.2
- old
+ new
@@ -15,9 +15,19 @@
def each(&bl)
@operand.each(&bl)
end
+ def _count
+ if operand.respond_to?(:count)
+ operand.count
+ elsif operand.respond_to?(:size)
+ operand.size
+ else
+ super
+ end
+ end
+
def to_ast
[ :in_memory, operand ]
end
def to_s