-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
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).
- is cloned by
-
MONGOID-5430 Deprecate pluck behavior in map
- Closed
- is related to
-
MONGOID-5148 Implement map(field) for Memory and None contexts
- Closed
-
MONGOID-5399 Contextual #map should take a splat of field args
- Closed
-
MONGOID-5400 Mongoid::Criteria#map should yield its field args to the block
- Closed