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-13 15:50:11 +0100
commitd3006f3503cd62510f669fcac84f8dc47c3b333c (patch)
treeb369a5fcc68f0584d75e2ad571273f25c867cd0f /activerecord/CHANGELOG.md
parent267fb61277ac960ad443d239febcb3136a007d24 (diff)
downloadrails-d3006f3503cd62510f669fcac84f8dc47c3b333c.tar.gz
rails-d3006f3503cd62510f669fcac84f8dc47c3b333c.tar.bz2
rails-d3006f3503cd62510f669fcac84f8dc47c3b333c.zip
backport #8176, `#pluck` can be used on a relation with `select` clause.
Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/relation/calculations.rb activerecord/test/cases/calculations_test.rb
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 d8493205d7..71a740f300 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 3.2.10 (unreleased)
+* `#pluck` can be used on a relation with `select` clause. [Backport #8176]
+ Fix #7551
+
+ Example:
+
+ Topic.select([:approved, :id]).order(:id).pluck(:id)
+
+ *Yves Senn*
+
* Do not create useless database transaction when building `has_one` association. [Backport #8154]
Example: