trumant/mongoid-sequence — pull request #1 by m3talsmith (2012-08-23 16:42:35+00:00)
Title: Updated with moped modify and moved to mongoid 3.0.x (past rc)

I needed this updated to work with the latest 3.0.x mongoid and there was one problem with the method #and_modify in #set_sequence. I updated it to use modify.

Modify didn't appear to return the next sequence, as it's atomic, so I also added an extra line to set the right sequence for the local instance of that field

All the tests are passing.

Feel free to pull. Cheers!