diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 16:23:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 16:23:15 -0700 |
commit | 24000a51a7e61c065817e3910bd579e8bdf6f82f (patch) | |
tree | a4068323a2d8717e982c138ffe0708eb6dba9eef /lib/arel/nodes/sum.rb | |
parent | cb6d13877c8d85bd7ba7f7286dfc8b5ae98a50b3 (diff) | |
download | rails-24000a51a7e61c065817e3910bd579e8bdf6f82f.tar.gz rails-24000a51a7e61c065817e3910bd579e8bdf6f82f.tar.bz2 rails-24000a51a7e61c065817e3910bd579e8bdf6f82f.zip |
average node is added
Diffstat (limited to 'lib/arel/nodes/sum.rb')
-rw-r--r-- | lib/arel/nodes/sum.rb | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/arel/nodes/sum.rb b/lib/arel/nodes/sum.rb index d81455fa5f..3e043b7330 100644 --- a/lib/arel/nodes/sum.rb +++ b/lib/arel/nodes/sum.rb @@ -1,22 +1,6 @@ module Arel module Nodes - class Sum - attr_accessor :expressions, :alias - - def initialize expr, aliaz = nil - @expressions = expr - @alias = aliaz - end - - def as aliaz - self.alias = SqlLiteral.new(aliaz) - self - end - - def to_sql - viz = Visitors::ToSql.new Table.engine - viz.accept self - end + class Sum < Arel::Nodes::Function end end end |