aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/algebra')
-rw-r--r--lib/arel/algebra/relations/utilities/compound.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb
index 1796008117..31b2159883 100644
--- a/lib/arel/algebra/relations/utilities/compound.rb
+++ b/lib/arel/algebra/relations/utilities/compound.rb
@@ -4,7 +4,7 @@ module Arel
attr_reader :relation
delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
- :column_for, :sources, :locked, :table_alias,
+ :column_for, :sources, :locked, :table_alias, :array,
:to => :relation
def initialize relation
@@ -24,6 +24,10 @@ module Arel
@attributes ||= relation.attributes.bind(self)
end
+ def unoperated_rows
+ relation.call.collect { |row| row.bind(self) }
+ end
+
def hash
@hash ||= :relation.hash
end