Fixing Ruby code for NewORM