aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-29 21:39:52 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-29 21:39:52 +0000
commitbef071dd0b6b634c5e8e49d8c1b9daa0baa4136c (patch)
treed05134e246b293621aa24818d1fa63812843f494 /activerecord/CHANGELOG
parent2283524dffec7c4869138508741f0e55b06d84eb (diff)
downloadrails-bef071dd0b6b634c5e8e49d8c1b9daa0baa4136c.tar.gz
rails-bef071dd0b6b634c5e8e49d8c1b9daa0baa4136c.tar.bz2
rails-bef071dd0b6b634c5e8e49d8c1b9daa0baa4136c.zip
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
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG7
1 files changed, 7 insertions, 0 deletions
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]