From bef071dd0b6b634c5e8e49d8c1b9daa0baa4136c Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 29 Oct 2007 21:39:52 +0000 Subject: Introduce finder :joins with associations. Same :include syntax but with inner rather than outer joins. Closes #10012. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activerecord/CHANGELOG') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index a7f8ad522e..ecea80cc5c 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,12 @@ *SVN* +* Introduce finder :joins with associations. Same :include syntax but with inner rather than outer joins. #10012 [RubyRedRick] + # Find users with an avatar + User.find(:all, :joins => :avatar) + + # Find posts with a high-rated comment. + Post.find(:all, :joins => :comments, :conditions => 'comments.rating > 3') + * Associations: speedup duplicate record check. #10011 [lifofifo] * Make sure that << works on has_many associations on unsaved records. Closes #9989 [hasmanyjosh] -- cgit v1.2.3