-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
it seem that mongoid is only eager loading the first association mentioned in an includes directive. for instance Thing.includes(:apple, :orange) only eager loads Apples, where as Thing.includes(:orange, :apple) only eager loads oranges. in my case thing has two belongs_to lines, one for both associations.