diff options
author | Paul Sadauskas <psadauskas@gmail.com> | 2011-01-21 17:40:44 -0700 |
---|---|---|
committer | Paul Sadauskas <psadauskas@gmail.com> | 2011-01-21 17:40:44 -0700 |
commit | 75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864 (patch) | |
tree | 5934a9a1f1012a962ea29aff8745f0094b5a6950 /lib/arel/nodes | |
parent | 6abed021b19d073f159f9b7e6d9f466e053f8e6b (diff) | |
download | rails-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.rb | 9 |
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 |