Composite Primary Keys Patch

3 views
Skip to first unread message

fosrias

unread,
Nov 12, 2009, 7:41:06 PM11/12/09
to Machinist Users
The problem is in the CompositePrimaryKeys gem and how it handles
lathe.object.reload without any options. Apart from fixing the gem,
you are up a creek.

However, ...

the workaround is super easy. In the class method make, change

lathe.object.reload

to

lathe.object.reload(:limit => 1)

and everything works. I trust that should have no effect on the
standard functionality since it is only reloading one record anyhow.

No more composite key errors with this simple patch.

Reply all
Reply to author
Forward
0 new messages