Add test for read_attribute(:id) with non-standard PK.
Also make it actually work. It slows down all read_attribute accesses to map 'id' to whatever the PK actually is, inside read_attribute. So instead make sure the necessary methods are defined and that they redirect wherever they need to go.
Showing
想要评论请 注册 或 登录