Update model.rb

for mongoid