class Prosperity::Aggregate::Sum

Public Instance Methods

apply(scope, options = {}) click to toggle source
# File lib/prosperity/aggregate/sum.rb, line 7
def apply(scope, options = {})
  scope.sum(column)
end
to_sql() click to toggle source
# File lib/prosperity/aggregate/sum.rb, line 3
def to_sql
  "SUM(#{column})"
end