aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/project.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-26 14:13:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-26 14:13:00 -0700
commit29fea82cc67259974a78a5ca8872bd515c9042ae (patch)
tree20725d098a3c8e3a1aba5a47e472daa0d410dfe8 /lib/arel/algebra/relations/operations/project.rb
parent7e4e37eae9ce82d42a10de2917bc97529fa4a4b3 (diff)
downloadrails-29fea82cc67259974a78a5ca8872bd515c9042ae.tar.gz
rails-29fea82cc67259974a78a5ca8872bd515c9042ae.tar.bz2
rails-29fea82cc67259974a78a5ca8872bd515c9042ae.zip
more class organizing
Diffstat (limited to 'lib/arel/algebra/relations/operations/project.rb')
-rw-r--r--lib/arel/algebra/relations/operations/project.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb
index 2cdae288e3..daca742039 100644
--- a/lib/arel/algebra/relations/operations/project.rb
+++ b/lib/arel/algebra/relations/operations/project.rb
@@ -22,5 +22,9 @@ module Arel
relation == other.relation &&
projections == other.projections
end
+
+ def eval
+ unoperated_rows.collect { |r| r.slice(*projections) }
+ end
end
end