You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.