fix reverse associations for through associations on rails < 4.2