fix bug init validationRules in ActiveRecord