Fix class_name_of_active_record_descendant issue