In the case where the association is polymorphic and there's no kind of STI, this code was trying to constantize the target thinking it is a class, rather than interrogating the type value - it seems weird since one might expect the 'klass' method to do this for you, but even in rails 3.2 it does not do this and ultimately thinks the class_name is the name of the association