[Monkey Patch Removal] Remove Object#__sortable__ monkey patch

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Refer to MONGOID-5660 for context.
       
      Object#_sortable_ is a kernel monkey patch which is only used in Contextual::Memory.
       
      This PR moves it to a private method in Contextual::Memory with a minor amount of refactoring. Existing tests already cover all the functionality.
       
      PR raised: https://github.com/mongodb/mongoid/pull/5708
       

              Assignee:
              Jamis Buck
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: