Mongoid document editor using gem