support rails 4.0 habtm reflection lookup