for mongoid 4