mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5cebe69e74
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.
15 lines
No EOL
216 B
YAML
15 lines
No EOL
216 B
YAML
michael:
|
|
id: 1
|
|
first_name: Michael
|
|
primary_contact_id: 2
|
|
gender: M
|
|
david:
|
|
id: 2
|
|
first_name: David
|
|
primary_contact_id: 3
|
|
gender: M
|
|
susan:
|
|
id: 3
|
|
first_name: Susan
|
|
primary_contact_id: 2
|
|
gender: F |