Module: Counter::Summable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Value
- Defined in:
- app/models/concerns/counter/summable.rb
Overview
count_using :price count_using ->{ revenue * priority } This lets you keep running totals of revenue etc rather than just a count of the orders