[ci skip] Typo

This commit is contained in:
Y.I 2023-11-10 13:51:15 +02:00 committed by GitHub
parent 682854640e
commit 10e0bddf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2406,7 +2406,7 @@ irb> assoc.unscope(:includes).pluck(:id)
### `pick`
[`pick`][] can be used to pick the value(s) from the named column(s) in the current relation. It accepts a list of column names as an argument and returns the first row of the specified column values with corresponding data type.
`pick` is an short-hand for `relation.limit(1).pluck(*column_names).first`, which is primarily useful when you already have a relation that is limited to one row.
`pick` is a short-hand for `relation.limit(1).pluck(*column_names).first`, which is primarily useful when you already have a relation that is limited to one row.
`pick` makes it possible to replace code like: