diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:36:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:36:10 -0700 |
commit | 7b8944cb7662509d7ba6869ff571518ac7f848ea (patch) | |
tree | be57ff9ce3a937428a5c61cb8cada24006fe8874 /lib/arel/nodes/sum.rb | |
parent | ab55d3bfc18348e9f43e4604e02c4c3db7a3e23c (diff) | |
download | rails-7b8944cb7662509d7ba6869ff571518ac7f848ea.tar.gz rails-7b8944cb7662509d7ba6869ff571518ac7f848ea.tar.bz2 rails-7b8944cb7662509d7ba6869ff571518ac7f848ea.zip |
adding a sum node
Diffstat (limited to 'lib/arel/nodes/sum.rb')
-rw-r--r-- | lib/arel/nodes/sum.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/arel/nodes/sum.rb b/lib/arel/nodes/sum.rb new file mode 100644 index 0000000000..ecd66aba7a --- /dev/null +++ b/lib/arel/nodes/sum.rb @@ -0,0 +1,12 @@ +module Arel + module Nodes + class Sum + attr_accessor :expressions, :alias + + def initialize expr, aliaz = nil + @expressions = expr + @alias = aliaz + end + end + end +end |