class Prosperity::Aggregate::Average
Public Instance Methods
apply(scope, options = {})
click to toggle source
# File lib/prosperity/aggregate/average.rb, line 7 def apply(scope, options = {}) scope.average(column) end
to_sql()
click to toggle source
# File lib/prosperity/aggregate/average.rb, line 3 def to_sql "AVG(#{column})" end