diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-12-27 16:38:32 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-12-27 16:38:32 -0300 |
commit | 49a8c7bd5168ca84897166527f5c0d90126dc402 (patch) | |
tree | 73d803eddb1dffa6c0f31bdd3a203e607ee00686 /lib/arel/engines/memory/relations | |
parent | a5e3ac2c2d20ea1335a1aa48e6813272a39bc3d3 (diff) | |
download | rails-49a8c7bd5168ca84897166527f5c0d90126dc402.tar.gz rails-49a8c7bd5168ca84897166527f5c0d90126dc402.tar.bz2 rails-49a8c7bd5168ca84897166527f5c0d90126dc402.zip |
Added "from" method, allowing to specify custom from clauses.
Diffstat (limited to 'lib/arel/engines/memory/relations')
-rw-r--r-- | lib/arel/engines/memory/relations/operations.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arel/engines/memory/relations/operations.rb b/lib/arel/engines/memory/relations/operations.rb index 8e01938360..a5082715a1 100644 --- a/lib/arel/engines/memory/relations/operations.rb +++ b/lib/arel/engines/memory/relations/operations.rb @@ -32,6 +32,12 @@ module Arel end end + class From < Compound + def eval + unoperated_rows[sources..-1] + end + end + class Group < Compound def eval raise NotImplementedError |