From 75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864 Mon Sep 17 00:00:00 2001 From: Paul Sadauskas Date: Fri, 21 Jan 2011 17:40:44 -0700 Subject: With node takes an array, less code to determine alternative nodes --- lib/arel/nodes/with.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/arel/nodes/with.rb') diff --git a/lib/arel/nodes/with.rb b/lib/arel/nodes/with.rb index ce1644b60e..0745080cc3 100644 --- a/lib/arel/nodes/with.rb +++ b/lib/arel/nodes/with.rb @@ -1,14 +1,7 @@ module Arel module Nodes class With < Arel::Nodes::Unary - attr_reader :children - alias value children - alias expr children - - def initialize *children - @children = children - end - + alias children expr end class WithRecursive < With; end -- cgit v1.2.3