lib/bmg/operator/allbut.rb in bmg-0.18.1 vs lib/bmg/operator/allbut.rb in bmg-0.18.2
- old
+ new
@@ -72,16 +72,20 @@
# `on` can only use attributes that have not been trown away,
# hence they exist on `operand` too.
operand.matching(right, on).allbut(butlist)
end
- def _restrict(type, predicate)
- operand.restrict(predicate).allbut(butlist)
- end
-
def _page(type, ordering, page_index, options)
return super unless self.preserving_key?
operand.page(ordering, page_index, options).allbut(butlist)
+ end
+
+ def _project(type, attrlist)
+ operand.project(attrlist)
+ end
+
+ def _restrict(type, predicate)
+ operand.restrict(predicate).allbut(butlist)
end
protected ### inspect
def preserving_key?