module Prosperity class Aggregate::Maximum < Aggregate::WithColumn def to_sql "MAX(#{column})" end def apply(scope, options = {}) scope.maximum(column) end end end