The following code raises NotImplementedError:
Band.any_of( { a: 1 }, { :created_at.gte => Date.today} )
The error is produced when:
- Multiple conditions are given in the same invocation
- Symbol operators are used (which are implemented using Key instances)
- The value being given is evolved to a different value (e.g. the field being queried is a Time field and the value given is a Date instance)
Operators other than any_of may be affected also, I didn't check. Whichever operators are affected should be fixed by the fix here.
- is caused by
-
MONGOID-4697 Implement Arel-style "and", "or" and "not" combination of scopes
- Closed
- links to