a semi-beautiful hack to a half-wise feature of rails