mongoid/mongoid — pull request #2539 by ahoward (2012-11-08 23:11:13+00:00)
Title: more accurate model tracking makes tasks non-broken

previous versions of mongoid attempted to guess models from file names. this is broken when and model is defined any place outside the 'normal' search path, and leads to such errors as missing uniq indexes on models. these commits

* add reload safe ability for mongoid to know all it's models deterministically via Mongoid::Document.included

* adds non-broken created_indexes and remove_indexes (backwards compatible)