This is a great gem. It's clean and does the trick of easily eliminating N+1 issues.
However, there are cases in my usage where the details of the resolved record alter the associations that need to be preloaded.
Accepting a proc that receives a record and returns the required preload seems to do the trick.
PR to follow...
=B