fixed : mongoid support based on joelvh fork