fix for change in the name of activerecord callbacks