Releases: moneybird/active-date-range
Releases · moneybird/active-date-range
v0.3.2
v0.3.0
-
include?
now behaves likecover?
for better performanceEdwin Vlieg
-
Add intersection support:
date_range.intersection(other_date_range) # => DateRange
Edwin Vlieg
-
Add support for boundless ranges:
date_range = DateRange.parse('202101..') date_range.boundless? # => true date_range.in_groups_of(:month) # => Enumerator::Lazy Model.where(date: date_range) # => SQL "WHERE date >= 2021-01-01"
Edwin Vlieg
-
Add ActiveModel type for date range:
attribute :period, :date_range
Edwin Vlieg