patch for mongoid