Handle inheritance for class_name on belongs_to associations