Legacy DB and composite keys: how do you approach?

Hi to everyone,

First a little background noise.

I’m working on an E-Commerce application in Rails and, at this stage,
I’ve to
relay on an existing db (MS SQL Server).
The aforementioned db has all the tables with composite primary (and
foreign) keys.

So far I’ve been using :conditions on has_xxx and belongs_to to overcome
the problem. I mean, until I found “composite_primary_keys” gem.

I’ve installed the gem and it doesn’t work with MS SQL.
The error is “uinitialized constant” at some point.

Putting that aside, I would like to know how do you usually approach the
composite primary key issue.

Thanks in advance for your help.
Regards,
Carmine