Skip to content

Commit

Permalink
Merge pull request #49997 from y0608/patch-1
Browse files Browse the repository at this point in the history
[ci skip] Typo a/an
  • Loading branch information
fatkodima committed Nov 10, 2023
2 parents 6828546 + 10e0bdd commit c37efa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_querying.md
Original file line number Diff line number Diff line change
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 c37efa1

Please sign in to comment.