aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2012-11-11 17:15:26 +0100
committerYves Senn <yves.senn@garaio.com>2012-11-12 16:27:44 +0100
commit663d9ef67003d3bec44295d29f3c254951202926 (patch)
treec23d60d4b240a8025020703b8e4523e6dd7fdea1 /activerecord/CHANGELOG.md
parentd5ac2801d9ba6eea0add944e13ba8f5c8754f117 (diff)
downloadrails-663d9ef67003d3bec44295d29f3c254951202926.tar.gz
rails-663d9ef67003d3bec44295d29f3c254951202926.tar.bz2
rails-663d9ef67003d3bec44295d29f3c254951202926.zip
`#pluck` can be used on a relation with `select` clause.
Closes #7551
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index e9adbf0f5d..580a580ba5 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 4.0.0 (unreleased) ##
+* `#pluck` can be used on a relation with `select` clause
+ Fix #7551
+
+ Example:
+
+ Topic.select([:approved, :id]).order(:id).pluck(:id)
+
+ *Yves Senn*
+
* Do not create useless database transaction when building `has_one` association.
Example: