Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5232

Add Feature Flag: Bring Mongoid::Document's === implementation in alignment with Ruby behavior

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 7.4.0
    • 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).

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            alexander.golin@mongodb.com Alexander Golin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: