Rails3 compatibility: replace after_initialize