aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-26 13:51:54 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-26 13:51:54 -0700
commit7e4e37eae9ce82d42a10de2917bc97529fa4a4b3 (patch)
treec9339d3f9a46fba704536eb012b1b26c4824c28a /lib/arel/algebra
parent91a66677fa6d3962ad5ab9fd49a9c8bc1cf97ef0 (diff)
downloadrails-7e4e37eae9ce82d42a10de2917bc97529fa4a4b3.tar.gz
rails-7e4e37eae9ce82d42a10de2917bc97529fa4a4b3.tar.bz2
rails-7e4e37eae9ce82d42a10de2917bc97529fa4a4b3.zip
reducing files
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