Mongoid 3.1.6 support

Support Mongoid in ver 3.1.6.