Загрузка...

ruby on rails - Mongoid update query sets other attributes to nil? - Stack Overflow

is it possible that you're running the pure MongoDB ruby driver .update() method instead of the Mongoid persistence methods? If so, the observed behavior would be expected. update() rewrites the full document, as state

#update_attributes() #expected #other #stated #pure

https://stackoverflow.com/questions/12291534/mongoid-update-query-sets-other-attributes-to-nil https://stackoverflow.com/questions/12291534/mongoid-update-query-sets-other-attributes-to-nil

Видео ruby on rails - Mongoid update query sets other attributes to nil? - Stack Overflow канала ResponseXAI
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять