-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
The === operator on Mongoid::Document instances now behaves as the core Ruby === operator does.
-
Major Change
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).
- is cloned by
-
MONGOID-5232 Add Feature Flag: Bring Mongoid::Document's === implementation in alignment with Ruby behavior
- Closed
- is related to
-
MONGOID-5257 Review instance === implementation
- Closed
- related to
-
MONGOID-5258 Review enumerable === implementation
- Closed
- links to