Edit for mongoid