Remove pluck behavior from map

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: