update mongoid extension