aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-26 15:02:24 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-26 15:02:24 -0700
commit9b316874243152db47b6127372c51d4c6e97ebea (patch)
tree0ecaedd6eb6e1b8e1f149509c3e9c6c840c4a823 /lib
parentd41b9c54aaafb852ff2e4fbba56962cb3eeb1837 (diff)
downloadrails-9b316874243152db47b6127372c51d4c6e97ebea.tar.gz
rails-9b316874243152db47b6127372c51d4c6e97ebea.tar.bz2
rails-9b316874243152db47b6127372c51d4c6e97ebea.zip
more class reorganization
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/algebra/relations/operations/from.rb4
-rw-r--r--lib/arel/engines/memory/relations/operations.rb6
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/arel/algebra/relations/operations/from.rb b/lib/arel/algebra/relations/operations/from.rb
index fbddb4234f..3ebfb10cb2 100644
--- a/lib/arel/algebra/relations/operations/from.rb
+++ b/lib/arel/algebra/relations/operations/from.rb
@@ -6,5 +6,9 @@ module Arel
super(relation)
@sources = sources
end
+
+ def eval
+ unoperated_rows[sources..-1]
+ end
end
end
diff --git a/lib/arel/engines/memory/relations/operations.rb b/lib/arel/engines/memory/relations/operations.rb
index 8ab6f08ab0..2269fadf72 100644
--- a/lib/arel/engines/memory/relations/operations.rb
+++ b/lib/arel/engines/memory/relations/operations.rb
@@ -1,10 +1,4 @@
module Arel
- class From < Compound
- def eval
- unoperated_rows[sources..-1]
- end
- end
-
class Alias < Compound
include Recursion::BaseCase