works with Mongoid ~> 3.0