drnic/composite_primary_keys — pull request #111 by dhall (2012-06-05 14:22:06+00:00)
Title: convert float and decimal to int for association preload

Several db's I write tools for have BigDecimal primary keys. Rails and CPK handle this very well except for when I try to do eager loading of associations. This patch fixes this problem for me and I don't think it will cause any problems, but please let me know if you think otherwise. I can demonstrate this with a simple app but couldn't see an easy way to write a failing test to the project without adding new tables/models/associations. If this is the preferred approach let me know and I will.