diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-26 12:41:52 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-05-26 12:41:52 -0300 |
commit | c9bbea6115be520dbd47bd30108c5622289deb26 (patch) | |
tree | ec418e01954c1bd2dcfebc7fbc8220fb04b50baf /lib/arel/engines/memory/relations/compound.rb | |
parent | ae1e0ac5e98a7e5a2894d0a431f8c34af6575cae (diff) | |
parent | 86364591af807ed3fa4a7304f53e6f3458cb4961 (diff) | |
download | rails-c9bbea6115be520dbd47bd30108c5622289deb26.tar.gz rails-c9bbea6115be520dbd47bd30108c5622289deb26.tar.bz2 rails-c9bbea6115be520dbd47bd30108c5622289deb26.zip |
Merge commit 'brynary/master'
Conflicts:
lib/arel.rb
lib/arel/session.rb
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 |