[Model] fix rails 3 activerecord callbacks