generate mongoid model on save