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

Fix some compatibility issues with Enumerable API

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 9.0.1
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Ruby Drivers

      Copied from https://github.com/mongodb/mongoid/pull/5831

      Hi, in accordance with Ruby's enumerable API, I've added support for initial value when a block is given to Enumerable#sum.

      Tell me if the provided changes are ok and I could replicate the same changes to min and max methods.

      Cheers!

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: