goncalossilva/mongoid-sequence — pull request #1 by cblock (2012-06-05 10:13:42+00:00)
Title: Add multi-tenant capability

Hi!

Thanks for this nice gem. I just added a small feature that allows one to specify another model field as additional discriminator for the sequence. The value of the specified field is added to the sequence name.

I need this feature to generate different sequences for different tenants.

Maybe others might find this useful too.

Thanks for considering this addition,
Carsten