Mongoid provides `any_of` as an alias for `or`. I am unable to locate any user documentation for `any_of` in Mongoid, and it seems to not be an ActiveRecord method either as there are projects on the web advertising themselves as "providing Mongoid-like any_of for ActiveRecord".
We should document `any_of` as an alias for `or`. I also suggest marking it deprecated since `or` functions identically, is documented and is also provided by ActiveRecord.
- duplicates
-
MONGOID-4862 Make any_of behave like or but not disjunct the receiver
- Closed
- related to
-
MONGOID-4697 Implement Arel-style "and", "or" and "not" combination of scopes
- Closed