If you have a document like
{ "occupants" : ["Tim", "Logan"] }and you do
document.matches?("occupants.0" => "Tim")
then it currently returns false.
This pull request fixes it: https://github.com/mongodb/mongoid/pull/4382
If you have a document like
{ "occupants" : ["Tim", "Logan"] }and you do
document.matches?("occupants.0" => "Tim")
then it currently returns false.
This pull request fixes it: https://github.com/mongodb/mongoid/pull/4382