Rails3 compatibility: replace before_validation_on_create