Sha256: 52eaff35b956525cf40ea993b8d8b7378c0e9d70aadaed501185c2e04b67f8b8

Contents?: true

Size: 198 Bytes

Versions: 1

Compression:

Stored size: 198 Bytes

Contents

module Prosperity
  class Aggregate::Maximum < Aggregate::WithColumn
    def to_sql
      "MAX(#{column})"
    end

    def apply(scope, options = {})
      scope.maximum(column)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prosperity-0.0.11 lib/prosperity/aggregate/maximum.rb