Closed joshm1204 closed 5 years ago
Does active hash have the ability to search by >, < operators? If not, what is the preferred solution?
It doesn't. Simple solution we known is to use Enumerable#select
Enumerable#select
@joshm1204 Hi, ActiveHash where method now takes range argument so you can do something like foo.where(id: 0..Float::Infinity)
where
foo.where(id: 0..Float::Infinity)
Does active hash have the ability to search by >, < operators? If not, what is the preferred solution?