Use reflections or _reflections, whichever is defined.

Not beautiful, but this should fix #353 for now. Also see
rails/rails#15300.