How do i prevent mongoid from saving default values when doing an update_attributes( )? -


is there way in mongoid?

i existing fields stay nil , not take on model's 'default' property.

there no way in mongoid, suggest open feature request https://github.com/mongoid/mongoid/issues/new


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -