Sha256: d4fa4c45864f3e9116e796f32c0522f8b0ba29ea1e8888d1282ff0c4881db765

Contents?: true

Size: 174 Bytes

Versions: 1

Compression:

Stored size: 174 Bytes

Contents

module Prosperity
  class Aggregate::Count < Aggregate::Base
    def to_sql
      "COUNT(1)"
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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