diff options
Diffstat (limited to 'lib/arel/engines/memory/relations/compound.rb')
-rw-r--r-- | lib/arel/engines/memory/relations/compound.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/arel/engines/memory/relations/compound.rb b/lib/arel/engines/memory/relations/compound.rb new file mode 100644 index 0000000000..6dda92a6a1 --- /dev/null +++ b/lib/arel/engines/memory/relations/compound.rb @@ -0,0 +1,9 @@ +module Arel + class Compound < Relation + delegate :array, :to => :relation + + def unoperated_rows + relation.call.collect { |row| row.bind(self) } + end + end +end |