aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/people.yml
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-12-19 01:02:21 +0000
committerFrederick Cheung <frederick.cheung@gmail.com>2008-12-26 18:25:55 +0000
commit5cebe69e74d411c3c9e5f6ab9d4b2b16ee36177c (patch)
tree7e30226bcda0e5f9292b71927a32d5c15133e391 /activerecord/test/fixtures/people.yml
parenteb457ceee13779ade67e1bdebd2919d476148277 (diff)
downloadrails-5cebe69e74d411c3c9e5f6ab9d4b2b16ee36177c.tar.gz
rails-5cebe69e74d411c3c9e5f6ab9d4b2b16ee36177c.tar.bz2
rails-5cebe69e74d411c3c9e5f6ab9d4b2b16ee36177c.zip
Preload uses exclusive scope [#643 state:resolved]
With self referential associations, the scope for the the top level should not affect fetching of associations, for example when doing Person.male.find :all, :include => :friends we should load all of the friends for each male, not just the male friends.
Diffstat (limited to 'activerecord/test/fixtures/people.yml')
-rw-r--r--activerecord/test/fixtures/people.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/people.yml b/activerecord/test/fixtures/people.yml
index d5a69e561d..3babb1fe59 100644
--- a/activerecord/test/fixtures/people.yml
+++ b/activerecord/test/fixtures/people.yml
@@ -1,6 +1,15 @@
michael:
id: 1
first_name: Michael
+ primary_contact_id: 2
+ gender: M
david:
id: 2
- first_name: David \ No newline at end of file
+ first_name: David
+ primary_contact_id: 3
+ gender: M
+susan:
+ id: 3
+ first_name: Susan
+ primary_contact_id: 2
+ gender: F \ No newline at end of file