Sha256: 12349fd863ec71e7e322a3905ac4bd99c27066533cdf69e9a7035a376fa3d6d6
Contents?: true
Size: 190 Bytes
Versions: 1
Compression:
Stored size: 190 Bytes
Contents
module Prosperity class Aggregate::Sum < Aggregate::WithColumn def to_sql "SUM(#{column})" end def apply(scope, options = {}) scope.sum(column) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.11 | lib/prosperity/aggregate/sum.rb |