diff options
author | awilliams <pwnfactory@gmail.com> | 2013-03-07 19:05:27 +0100 |
---|---|---|
committer | awilliams <pwnfactory@gmail.com> | 2013-03-07 19:05:27 +0100 |
commit | b045b5c1636b61cb38d87ac761289fe0794b0f20 (patch) | |
tree | 3b3e760b317c1be43ab9a9e21aaae46bc2292051 /guides | |
parent | c5b5c68d522b4bdcb5fce03a5966ec93bdd87e95 (diff) | |
download | rails-b045b5c1636b61cb38d87ac761289fe0794b0f20.tar.gz rails-b045b5c1636b61cb38d87ac761289fe0794b0f20.tar.bz2 rails-b045b5c1636b61cb38d87ac761289fe0794b0f20.zip |
fixes active_record_querying #pluck example
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 0d0813c56a..575666aafb 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1399,7 +1399,7 @@ Client.select(:id).map { |c| c.id } # or Client.select(:id).map(&:id) # or -Client.select(:id).map { |c| [c.id, c.name] } +Client.select(:id, :name).map { |c| [c.id, c.name] } ``` with |