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

Remove pluck behavior from map

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change

      Currently Mongoid's map also can perform the pluck operation, by being called with a field name. This behavior was added in a9cff701b2 and it looks like the author was unaware of pluck because pluck was actually added about 5 months earlier, in 441abe20130639e97b38f9ac216af455a24dbba8.

      Since there is a dedicated method for plucking, the plucking behavior should be removed from map. Doing so will make the signature of map identical to both Ruby core and AR (neither of which have plucking behavior in their maps).

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: