From 9b316874243152db47b6127372c51d4c6e97ebea Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 26 Jul 2010 15:02:24 -0700 Subject: more class reorganization --- lib/arel/algebra/relations/operations/from.rb | 4 ++++ lib/arel/engines/memory/relations/operations.rb | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/arel') 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 -- cgit v1.2.3