support mongoid 4