Pass attributes to AbstractForm::getRules