Moved the mongoid hack in its own file