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

[Monkey Patch Removal] Remove Object#__to_inc__

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

      Object#_to_inc_ is a kernel monkey patch used only in the #inc and #mul atomic methods.
       
      This PR removes the monkey patch and inlines its code to the two places it is used. The logic is covered by existing specs, so no new specs needed.
       
      PR raised: https://github.com/mongodb/mongoid/pull/5709

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: