skyeagle/mongoid-ancestry — pull request #8 by jbbarth (2012-05-31 04:55:20+00:00)
Title: Mongoid 3.0 compatibility

Mongoid 3.0.0 will be released soon (currently in RC version), so it would be great if mongoid_ancestry was compatible with it. This branch fixes some tiny things for mongoid 3 and al tests are green on ruby 1.9.2 (I can test other rubies if necessary).

There are only 3 changes in the `lib` directory, with one of them incompatible with mongoid 2.4.x, the definition of indexes. It might be possible to find a solution compatible with both versions but I'm not sure it would be the best idea in the long term.

I'd love to hear your comments / criticisms about it before merging. Thanks !