support mongoid 4

The tests are passed, :D.