-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
Trying to delete an embedded object using the _destroy attribute doesn't work for nested attributes when using "_destroy", but it will work with :_destroy
This will not delete the comment:
article.update_attributes(comments: [{"_id" => ..., "_destroy" => "1"}])
This will work, however:
article.update_attributes(comments: [{"_id" => ..., :_destroy => "1"}])