From 7e4e37eae9ce82d42a10de2917bc97529fa4a4b3 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 26 Jul 2010 13:51:54 -0700 Subject: reducing files --- lib/arel/algebra/relations/utilities/compound.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/arel/algebra') 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 -- cgit v1.2.3