Releases: BaseSecrete/type_scopes
Releases · BaseSecrete/type_scopes
0.5.0
0.4.0
This release adds automatically 3 new ActiveRecord scopes for dates and numerics columns :
Transaction.amount_not_between(100, 200)
# => where("amount NOT BETWEEN 100 AND 200")
Transaction.amount_within(100, 200)
# => where("amount > 100 AND amount < 200")
Transaction.amount_not_within(100, 200)
# => where("amount <= 100 OR amount >= 200")