Rails3 compatibility: replace after_save