ActiveRecord Where Assoc v0.1.2 Release Notes
Release Date: 2018-06-10 // almost 6 years ago-
- It is now possible to pass a
Range
as first argument to#where_assoc_count
.
Ex: Users that have between 10 and 20 postsUser.where_assoc_count(10..20, :==, :posts)
The operator in that case must be either :== or :!=.
This will useBETWEEN
andNOT BETWEEN
.
Ranges that exclude the last value, i.e.5...10
, are also supported, resulting inBETWEEN 5 and 9
. Ranges with infinities are also supported.
- It is now possible to pass a