class Prosperity::Aggregate::Count

Public Instance Methods

apply(scope, options = {}) click to toggle source
# File lib/prosperity/aggregate/count.rb, line 7
def apply(scope, options = {})
  scope.count
end
to_sql() click to toggle source
# File lib/prosperity/aggregate/count.rb, line 3
def to_sql
  "COUNT(1)"
end