-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
This works in Ruby:
:foobar.match?(/foo/) #=> true
So this should work in Mongoid
class Pet field :animal, type: Symbol end Pet.where(animal: /fish/)
- is related to
-
MONGOID-5386 Pass through uncastable values in evolve
- Closed