rails 4 compatibility fix: habtm join_table