o = Organization.first
o.people.includes(:addresses).each do |p|
 puts p
 puts p.addresses
end # 2 queries are executed, normal and for eager loading addresses

but

o.people.loaded? => false

Is that a bug or by-design behavior that o.people.includes(:address)
won't store the fetched records in o.people association ?

Robert Pankowecki

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to