Support v3 and v4 eager load logic, #1791

@jonleighton Appears to work in my simple test with Rails 3.2 and Rails 4.  WDYT?