Updated for mongoid 3.0 and moped