Skip to content

Commit

Permalink
[ci skip] Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
y0608 committed Nov 10, 2023
1 parent 6828546 commit 10e0bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_querying.md
Expand Up @@ -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:

Expand Down

0 comments on commit 10e0bdd

Please sign in to comment.