You should not use include inside an included block as this prevents developers from extending any of the mongoid api in the correct way. Module inclusion should build up the inheritance chain with each include, so that the last included module is first in the chain. Including in an included block kills this by insuring your module is included last. Check out the source for ActiveSupport::Concern to see what I mean.
…ds on a Document like manner
…g because of some funky MM reset on @target, not sure what the intended functionality is there
… create, added specs and models for testing references_many/referenced_in which didn't exist before
… to use any patch version.
This is necessary for use with Thin, as it doesn't start the EventMachine reactor until the first request. Note that, by default, the Railtie will still force the connection at initialization-time, but this can be overriden.
…n validates_uniqueness_of this will consider '...' and 'abc' as differrent strings, or they will match if directly put into regexp