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

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
    • 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).

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            alexander.golin@mongodb.com Alexander Golin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: