support mongoid 3