fix attribute translation for activerecord using STI