Module: Babik::QuerySet::StandardSqlOperation
- Defined in:
- lib/babik/queryset/components/aggregation.rb
Overview
Mixin that injects the sql_operation method in aggregations with the same SQL syntax independently of the database adapter (SUM, MAX, MIN, etc.)
Instance Method Summary collapse
Instance Method Details
#sql_operation ⇒ Object
96 97 98 |
# File 'lib/babik/queryset/components/aggregation.rb', line 96 def sql_operation self.class::SQL_OPERATION end |