-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
The === operator on Mongoid::Document instances now behaves as the core Ruby === operator does.
-
Fully Compatible
Problem description is in submitted PR: https://github.com/mongodb/mongoid/pull/5013
The === implementation of Mongoid was not in alignment with how the Ruby language's === behaves, in particular === returned true for comparison of classes with themselves which is not the purpose of core language's === (it is meant for instance vs class checks).
- clones
-
MONGOID-5126 Bring Mongoid::Document's === implementation in alignment with Ruby behavior
- Closed
- links to