Rails3 compatibility: model: replace deprecated errors.add_to_base