aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
authorPaul Sadauskas <psadauskas@gmail.com>2011-01-21 17:40:44 -0700
committerPaul Sadauskas <psadauskas@gmail.com>2011-01-21 17:40:44 -0700
commit75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864 (patch)
tree5934a9a1f1012a962ea29aff8745f0094b5a6950 /lib/arel/nodes
parent6abed021b19d073f159f9b7e6d9f466e053f8e6b (diff)
downloadrails-75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864.tar.gz
rails-75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864.tar.bz2
rails-75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864.zip
With node takes an array, less code to determine alternative nodes
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/with.rb9
1 files changed, 1 insertions, 8 deletions
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