Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1296

multiple includes

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.3.1
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ghost Deleted user
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: