From 663d9ef67003d3bec44295d29f3c254951202926 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Sun, 11 Nov 2012 17:15:26 +0100 Subject: `#pluck` can be used on a relation with `select` clause. Closes #7551 --- activerecord/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'activerecord/CHANGELOG.md') 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: -- cgit v1.2.3