Skip to content

Commit e82cee5

Browse files
committed
MONGOID-5426 add map as pluck deprecation to release notes
1 parent cf49602 commit e82cee5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/release-notes/mongoid-7.5.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,23 @@ The following functions are affected by this change:
197197
operator.
198198

199199

200+
``pluck`` Usage of ``map`` Deprecated
201+
-------------------------------------
202+
203+
Mongoid 7.5 deprecates the usage of ``map`` as pluck, as in the following
204+
example:
205+
206+
.. code-block:: ruby
207+
208+
Band.all.map(:name)
209+
210+
# Equivalent to:
211+
Band.pluck(:name)
212+
213+
This usage will no longer be supported in Mongoid 8, which will not accept
214+
arguments to ``map``.
215+
216+
200217
``Mongoid::Criteria`` cache deprecated
201218
--------------------------------------
202219

0 commit comments

Comments
 (0)