Module: Pagy::Calendar::MonthMixin

Included in:
Month, Quarter
Defined in:
lib/pagy/calendar/month_mixin.rb

Overview

Mixin for month based unit periods It is used for month and quarter, but you could use it to implement less common unit of 6, 4, 2 months (see the ddnexus.github.io/pagy/api/calendar#custom-units sections for details). The including class must set the MONTHS duration for the unit and the usual DEFAULT.